/* ==========================================================================
   Codify Landing Page - Apple-inspired Design
   ========================================================================== */

/* Design Tokens */
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f7;
    --color-text: #1d1d1f;
    --color-text-secondary: #86868b;
    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;
    --color-border: #d2d2d7;

    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    --font-mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    --transition: 0.2s ease;
    --nav-height: 64px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

[x-cloak] {
    display: none !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.nav--scrolled {
    box-shadow: 0 1px 0 var(--color-border);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 18px;
}

.nav__logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__link {
    text-decoration: none;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 400;
    transition: color var(--transition);
}

.nav__link:hover {
    color: var(--color-accent);
}

.nav__cta {
    font-size: 14px;
    padding: 8px 16px;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle-bar {
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-family: var(--font-text);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn--primary {
    background: var(--color-accent);
    color: white;
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: scale(1.02);
}

/* ==========================================================================
   Badge
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 19px;
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: calc(var(--nav-height) + 80px) 0 80px;
    text-align: center;
    background: var(--color-bg);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 24px 0;
}

.hero__subtitle {
    font-size: 21px;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero__form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto 48px;
}

.hero__input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-family: var(--font-text);
    font-size: 17px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.hero__input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.hero__success {
    font-size: 17px;
    color: #34c759;
    margin-bottom: 48px;
}

/* Device Mockup */
.hero__device {
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
}

.device {
    background: #1d1d1f;
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.device--ipad {
    aspect-ratio: 10/7; /* Landscape iPad */
}

.device__screen {
    width: 100%;
    height: 100%;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
}

.device__screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Editor Mockup in Hero */
.editor-mockup {
    display: flex;
    height: 100%;
}

.editor-mockup__sidebar {
    width: 180px;
    background: #252526;
    border-right: 1px solid #3c3c3c;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #cccccc;
    display: flex;
    flex-direction: column;
}

.editor-mockup__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: #858585;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #3c3c3c;
}

.editor-mockup__header-icon {
    font-size: 14px;
}

.editor-mockup__tree {
    padding: 8px 0;
    flex: 1;
    overflow: hidden;
}

.editor-mockup__folder {
    padding: 4px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-mockup__folder:hover {
    background: rgba(255, 255, 255, 0.05);
}

.folder-icon {
    font-size: 8px;
    color: #858585;
    width: 12px;
}

.editor-mockup__file {
    padding: 4px 12px;
    cursor: pointer;
    opacity: 0.8;
}

.editor-mockup__file:hover {
    background: rgba(255, 255, 255, 0.05);
}

.editor-mockup__file--nested {
    padding-left: 30px;
}

.editor-mockup__file--active {
    background: rgba(0, 113, 227, 0.3);
    opacity: 1;
}

.editor-mockup__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.editor-mockup__tabs {
    display: flex;
    gap: 1px;
    background: #252526;
    padding: 0;
    border-bottom: 1px solid #3c3c3c;
}

.editor-mockup__tab {
    padding: 8px 16px;
    background: #2d2d2d;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #858585;
    border-top: 2px solid transparent;
}

.editor-mockup__tab--active {
    background: #1e1e1e;
    color: #ffffff;
    border-top-color: var(--color-accent);
}

.editor-mockup__code {
    flex: 1;
    padding: 12px 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: #d4d4d4;
    position: relative;
    overflow: hidden;
}

.editor-mockup__line {
    padding: 0 16px;
    white-space: nowrap;
}

.editor-mockup__line .ln {
    display: inline-block;
    width: 28px;
    color: #858585;
    text-align: right;
    margin-right: 16px;
    user-select: none;
}

.code-cursor {
    color: #fff;
    animation: blink 1s infinite;
}

.editor-mockup__autocomplete {
    position: absolute;
    left: 100px;
    top: 56px;
    background: #252526;
    border: 1px solid #454545;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 10;
}

.autocomplete-item {
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.autocomplete-item--selected {
    background: #094771;
    color: #ffffff;
}

.autocomplete-icon {
    font-size: 10px;
    color: #c586c0;
    width: 16px;
    text-align: center;
}

/* Assistant Panel in Hero Mockup */
.editor-mockup__assistant {
    width: 200px;
    background: #252526;
    border-left: 1px solid #3c3c3c;
    display: flex;
    flex-direction: column;
}

.editor-mockup__assistant-header {
    padding: 12px;
    color: #cccccc;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #3c3c3c;
}

.editor-mockup__assistant-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.assistant-placeholder {
    text-align: center;
    color: #858585;
}

.assistant-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.assistant-placeholder span {
    font-size: 13px;
}

/* Syntax colors */
.code-keyword { color: #c586c0; }
.code-func { color: #dcdcaa; }
.code-param { color: #9cdcfe; }
.code-type { color: #4ec9b0; }
.code-string { color: #ce9178; }
.code-var { color: #9cdcfe; }
.code-number { color: #b5cea8; }
.code-preproc { color: #c586c0; }
.code-macro { color: #4fc1ff; }

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.features .section-subtitle {
    margin: 0 auto 64px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature {
    background: var(--color-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature__icon svg {
    width: 24px;
    height: 24px;
    color: #667eea;
}

.feature__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature__desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Preview Section
   ========================================================================== */

.preview {
    padding: 100px 0;
    background: var(--color-bg);
}

.preview .section-subtitle {
    margin: 0 auto 48px;
}

.preview__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.preview__tab {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.preview__tab:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text);
}

.preview__tab--active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: white;
}

.preview__window {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    z-index: 10;
}

.preview__content {
    min-height: 400px;
}

/* Preview Editor */
.preview-editor {
    display: flex;
    height: 400px;
}

.preview-editor__sidebar {
    width: 200px;
    background: #252526;
    border-right: 1px solid #3c3c3c;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #cccccc;
    display: flex;
    flex-direction: column;
}

.preview-editor__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: #858585;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #3c3c3c;
}

.preview-editor__search-icon {
    font-size: 12px;
}

.preview-editor__tree {
    padding: 8px 0;
    flex: 1;
    overflow: hidden;
}

.preview-editor__folder {
    padding: 4px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-editor__folder:hover {
    background: rgba(255, 255, 255, 0.05);
}

.preview-editor__file {
    padding: 4px 12px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.preview-editor__file:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.preview-editor__file--nested {
    padding-left: 30px;
}

.preview-editor__file--active {
    opacity: 1;
    background: rgba(0, 113, 227, 0.3);
}

.preview-editor__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.preview-editor__tabs-bar {
    display: flex;
    gap: 1px;
    background: #252526;
    border-bottom: 1px solid #3c3c3c;
}

.preview-editor__tab {
    padding: 8px 16px;
    background: #2d2d2d;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #858585;
    border-top: 2px solid transparent;
}

.preview-editor__tab--active {
    background: #1e1e1e;
    color: #ffffff;
    border-top-color: var(--color-accent);
}

.preview-editor__code {
    flex: 1;
    padding: 12px 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: #d4d4d4;
    overflow-x: auto;
}

.preview-editor__line {
    padding: 0 16px;
    white-space: nowrap;
}

.preview-editor__line .ln {
    display: inline-block;
    width: 28px;
    color: #858585;
    text-align: right;
    margin-right: 16px;
    user-select: none;
}

/* Preview Editor Assistant Panel */
.preview-editor__assistant {
    width: 220px;
    background: #252526;
    border-left: 1px solid #3c3c3c;
    display: flex;
    flex-direction: column;
}

.preview-editor__assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    color: #cccccc;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #3c3c3c;
}

.preview-editor__assistant-badge {
    padding: 2px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
}

.preview-editor__assistant-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.assistant-start {
    text-align: center;
    color: #858585;
}

.assistant-start__icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.assistant-start__text {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 8px;
}

.assistant-start__hint {
    font-size: 12px;
    color: #858585;
    line-height: 1.4;
}

/* Preview Terminal */
.preview-terminal {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.preview-terminal__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #323233;
    border-bottom: 1px solid #3c3c3c;
}

.preview-terminal__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-terminal__dot--red { background: #ff5f56; }
.preview-terminal__dot--yellow { background: #ffbd2e; }
.preview-terminal__dot--green { background: #27c93f; }

.preview-terminal__title {
    flex: 1;
    text-align: center;
    color: #858585;
    font-size: 13px;
}

.preview-terminal__body {
    flex: 1;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    color: #d4d4d4;
}

.preview-terminal__line {
    margin-bottom: 4px;
}

.term-prompt {
    color: #27c93f;
}

.term-output {
    color: #858585;
}

.term-success {
    color: #27c93f;
}

.term-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Preview Git */
.preview-git {
    height: 400px;
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: #d4d4d4;
}

.preview-git__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #3c3c3c;
}

.preview-git__branch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(39, 201, 63, 0.2);
    color: #27c93f;
    border-radius: 20px;
    font-weight: 500;
}

.preview-git__branch::before {
    content: "";
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2327c93f' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 3v12M18 9a3 3 0 100 6 3 3 0 000-6zM6 21a3 3 0 100-6 3 3 0 000 6zM18 15v6M18 9V3'/%3E%3C/svg%3E") center/contain no-repeat;
}

.preview-git__status {
    color: #858585;
}

.preview-git__section {
    margin-bottom: 24px;
}

.preview-git__section-title {
    color: #858585;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.preview-git__file {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 8px;
}

.preview-git__file--added {
    border-left: 3px solid #27c93f;
}

.preview-git__file--modified {
    border-left: 3px solid #ffbd2e;
}

.preview-git__actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.preview-git__btn {
    padding: 10px 24px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
}

.preview-git__btn:hover {
    background: var(--color-accent-hover);
}

.preview-git__btn--secondary {
    background: transparent;
    border: 1px solid var(--color-border);
    color: #d4d4d4;
}

.preview-git__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Preview AI */
.preview-ai {
    height: 400px;
    display: flex;
    flex-direction: column;
    font-family: var(--font-text);
}

.preview-ai__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #252526;
    border-bottom: 1px solid #3c3c3c;
}

.preview-ai__title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.preview-ai__badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

.preview-ai__chat {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-ai__message {
    max-width: 80%;
}

.preview-ai__message--user {
    align-self: flex-end;
}

.preview-ai__message--ai {
    align-self: flex-start;
}

.preview-ai__message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.preview-ai__message--user .preview-ai__message-content {
    background: var(--color-accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.preview-ai__message--ai .preview-ai__message-content {
    background: #3c3c3c;
    color: #d4d4d4;
    border-bottom-left-radius: 4px;
}

.preview-ai__message-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
}

.preview-ai__input {
    padding: 16px 20px;
    background: #252526;
    border-top: 1px solid #3c3c3c;
}

.preview-ai__input-text {
    display: block;
    padding: 12px 16px;
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 24px;
    color: #858585;
    font-size: 14px;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.about__content {
    max-width: 720px;
}

.about__text {
    font-size: 19px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.about__text:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq {
    padding: 100px 0;
    background: var(--color-bg);
}

.faq .section-title {
    margin-bottom: 48px;
}

.faq__list {
    max-width: 720px;
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    font-family: var(--font-text);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}

.faq__question:hover {
    color: var(--color-accent);
}

.faq__icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--color-text-secondary);
    transition: transform var(--transition);
}

.faq__item--open .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    padding-bottom: 24px;
    overflow: hidden;
}

.faq__answer p {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: 64px 0 32px;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.footer__tagline {
    margin-top: 12px;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.footer__links {
    display: flex;
    gap: 32px;
}

.footer__links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 14px;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--color-text);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: color var(--transition);
}

.footer__legal a:hover {
    color: var(--color-text);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav__links--open {
        display: flex;
    }

    .nav__cta {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__form {
        flex-direction: column;
    }

    .hero__input {
        width: 100%;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .preview-editor__sidebar,
    .preview-editor__assistant,
    .editor-mockup__assistant,
    .editor-mockup__sidebar {
        display: none;
    }

    .editor-mockup__autocomplete {
        display: none;
    }

    .footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: calc(var(--nav-height) + 48px) 0 48px;
    }

    .hero__title {
        font-size: 36px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .features,
    .preview,
    .about,
    .faq {
        padding: 64px 0;
    }

    .preview__tabs {
        flex-wrap: wrap;
    }

    .preview__tab {
        padding: 8px 16px;
        font-size: 14px;
    }

    .preview__content {
        min-height: 320px;
    }

    .preview-editor,
    .preview-terminal,
    .preview-git {
        height: 320px;
    }
}
