.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

/* Header & Nav */
.site-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 800; color: var(--color-text); letter-spacing: -0.02em; }
.logo span { color: var(--color-text-muted); font-weight: 500; }
.logo:hover { color: var(--color-primary); opacity: 0.9; }

.main-nav { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--color-text-muted); font-weight: 500; font-size: 0.9375rem; }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--color-text); padding: 0.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1.25rem; font-size: 0.9375rem; font-weight: 600; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: var(--transition); text-decoration: none; user-select: none; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-primary { background: var(--color-primary); color: var(--color-surface); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-surface); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-secondary { background: var(--color-surface-secondary); color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover { background: var(--color-border); border-color: var(--color-border-focus); color: var(--color-text); }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-outline:hover { background: var(--color-surface-secondary); border-color: var(--color-border-focus); color: var(--color-text); }
.w-full { width: 100%; }

/* Cards */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-md); }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.5rem; color: var(--color-text); }
.label-with-hint { display: flex; justify-content: space-between; align-items: baseline; }
.form-hint { font-size: 0.8125rem; color: var(--color-text-muted); }

/* Segmented Control */
.segmented-control { display: flex; background: var(--color-surface-secondary); padding: 4px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.segmented-control label { flex: 1; text-align: center; position: relative; cursor: pointer; margin: 0; }
.segmented-control input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented-control span { display: block; padding: 0.625rem 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted); border-radius: 6px; transition: var(--transition); user-select: none; }
.segmented-control input[type="radio"]:checked + span { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }
.segmented-control input[type="radio"]:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* Number Input Group */
.number-input-group { display: flex; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface); transition: var(--transition); }
.number-input-group input { border: none; border-radius: 0; flex: 1; text-align: center; font-weight: 600; padding: 0.75rem; }
.number-input-group input:focus { box-shadow: none; outline: none; }
.number-input-group .btn-icon { width: 48px; background: var(--color-surface-secondary); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--color-text-muted); transition: var(--transition); }
.number-input-group .btn-icon:hover { background: var(--color-border); color: var(--color-text); }
.number-input-group:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.number-input-group input[type=number]::-webkit-inner-spin-button, .number-input-group input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Toggle */
.options-group { display: flex; flex-direction: column; gap: 1rem; background: var(--color-surface-secondary); padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.toggle-control { display: flex; align-items: center; cursor: pointer; gap: 0.75rem; margin: 0; }
.toggle-control input { display: none; }
.toggle-track { width: 40px; height: 24px; background: var(--color-border-focus); border-radius: 12px; position: relative; transition: background 0.2s; flex-shrink: 0; }
.toggle-thumb { width: 18px; height: 18px; background: white; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform 0.2s; box-shadow: var(--shadow-sm); }
.toggle-control input:checked + .toggle-track { background: var(--color-accent); }
.toggle-control input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); }
.toggle-label { font-size: 0.9375rem; font-weight: 500; color: var(--color-text); user-select: none; }

/* Actions */
.form-actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.action-row { display: flex; gap: 1rem; width: 100%; }

/* Generator Tool App */
.generator-app { display: grid; grid-template-columns: 360px 1fr; gap: 2rem; align-items: start; }
.tool-controls-card { padding: 1.5rem; }
.output-card { display: flex; flex-direction: column; height: 100%; min-height: 600px; padding: 0; overflow: hidden; }
.output-header { padding: 1.5rem; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; background: var(--color-surface-secondary); }
.output-stats { font-size: 0.875rem; color: var(--color-text-muted); font-weight: 500; }

.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; text-align: center; }
.empty-state-icon { color: var(--color-border-focus); margin-bottom: 1rem; }
.empty-state-title { font-size: 1.25rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.5rem; }
.empty-state-desc { color: var(--color-text-muted); margin: 0; }

.output-wrapper { flex: 1; display: none; background: var(--color-surface); }
.output-textarea { width: 100%; height: 100%; min-height: 400px; resize: none; border: none; padding: 1.5rem; font-size: 1.05rem; line-height: 1.7; color: var(--color-text); font-family: var(--font-sans); }
.output-textarea:focus { outline: none; }

.output-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--color-border); display: flex; gap: 1rem; background: var(--color-surface); }

/* Toast */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100%); background: var(--color-primary); color: var(--color-surface); padding: 0.875rem 1.5rem; border-radius: var(--radius-full); font-weight: 500; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000; display: flex; align-items: center; gap: 0.75rem; box-shadow: var(--shadow-lg); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

/* Features & Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { background: var(--color-surface); padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); text-align: left; }
.feature-icon { width: 48px; height: 48px; background: var(--color-surface-secondary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--color-accent); margin-bottom: 1.5rem; border: 1px solid var(--color-border); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { margin: 0; font-size: 0.9375rem; }

/* FAQ Accordion */
.accordion { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.accordion-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.accordion-item:hover { border-color: var(--color-border-focus); box-shadow: var(--shadow-sm); }
.accordion-header { width: 100%; text-align: left; padding: 1.25rem 1.5rem; background: none; border: none; font-size: 1.05rem; font-weight: 600; color: var(--color-text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.accordion-icon { transition: transform 0.3s ease; color: var(--color-text-muted); }
.accordion-header[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); color: var(--color-accent); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-inner { padding: 0 1.5rem 1.5rem; color: var(--color-text-muted); line-height: 1.6; font-size: 1rem; }

/* Footer */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 4rem 0 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 800; color: var(--color-text); letter-spacing: -0.02em; margin-bottom: 1rem; }
.footer-logo span { color: var(--color-text-muted); font-weight: 500; }
.footer-desc { color: var(--color-text-muted); font-size: 0.9375rem; max-width: 300px; line-height: 1.6; }
.footer-heading { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text); margin-bottom: 1.25rem; margin-top: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--color-text-muted); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: 2rem; display: flex; flex-direction: column; align-items: center; color: var(--color-text-muted); font-size: 0.875rem; }

/* Hero Visual & Structure */
.hero-section { padding: 6rem 0; background: linear-gradient(to bottom, var(--color-surface), var(--color-surface-secondary)); border-bottom: 1px solid var(--color-border); overflow: hidden;}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--color-surface); border: 1px solid var(--color-border); padding: 0.375rem 0.875rem; border-radius: var(--radius-full); font-size: 0.8125rem; font-weight: 600; color: var(--color-text); margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.hero-badge svg { color: var(--color-accent); }
.hero-content h1 { font-size: 3.5rem; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 2.5rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; }

.faux-window { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); transform-origin: center right; transition: transform 0.5s ease; }
.faux-window:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.faux-header { background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 0.75rem 1rem; display: flex; align-items: center; }
.faux-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; } .dot.yellow { background: #f59e0b; } .dot.green { background: #10b981; }
.faux-body { padding: 1.5rem; display: flex; gap: 1.5rem; }
.faux-sidebar { width: 30%; display: flex; flex-direction: column; gap: 0.75rem; }
.faux-line { height: 12px; background: var(--color-border); border-radius: 6px; }
.faux-line.w-full { width: 100%; } .faux-line.w-half { width: 60%; } .faux-line.w-short { width: 40%; }
.faux-output { flex: 1; background: var(--color-bg); border-radius: var(--radius-sm); padding: 1.5rem; border: 1px solid var(--color-border); }
.faux-output p { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); font-family: monospace; line-height: 1.8; }
.faux-highlight { color: var(--color-accent); font-weight: 600; }

/* Steps */
.steps-container { display: flex; gap: 2rem; margin-top: 3rem; }
.step-card { flex: 1; position: relative; padding: 2rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.step-number { font-size: 3rem; font-weight: 800; color: var(--color-surface-secondary); position: absolute; top: 1rem; right: 1.5rem; line-height: 1; }
.step-card h3 { position: relative; z-index: 1; margin-bottom: 0.5rem; font-size: 1.25rem; }
.step-card p { position: relative; z-index: 1; margin: 0; font-size: 0.9375rem; }

/* Content Grid */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; }
.content-main h2 { margin-top: 2rem; border-bottom: 1px solid var(--color-border); padding-bottom: 0.75rem; }
.content-main h2:first-child { margin-top: 0; }
.sidebar-widget { background: var(--color-surface-secondary); padding: 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); margin-bottom: 2rem; }
.sidebar-widget h3 { font-size: 1.125rem; margin-bottom: 1rem; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.sidebar-list svg { color: var(--color-success); flex-shrink: 0; margin-top: 2px; }
