/* ========================================
   SwiftMock - Marketing Website Styles
   Pure CSS, No Frameworks
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Colors */
    --color-bg: #0a0a0b;
    --color-bg-elevated: #111113;
    --color-bg-card: #18181b;
    --color-bg-code: #1c1c1f;
    --color-border: #27272a;
    --color-border-light: #3f3f46;
    
    --color-text: #fafafa;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    
    --color-accent: #3b82f6;
    --color-accent-light: #60a5fa;
    --color-accent-dark: #2563eb;
    
    --color-success: #22c55e;
    --color-info: #3b82f6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    --gradient-bg: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Sizing */
    --container-max: 1200px;
    --container-narrow: 800px;
    
    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-bg-code);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--color-accent-light);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-text);
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-img-footer {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: var(--color-bg-card);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.nav-cta:hover {
    border-color: var(--color-border-light);
    background: var(--color-bg-elevated);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-bg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: var(--container-max);
}

.hero-left {
    text-align: left;
}

.hero-right {
    display: flex;
    justify-content: flex-end;
}

.hero-badges {
    display: flex;
    justify-content: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-text-secondary);
}

.badge-accent {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--color-accent-light);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 0 var(--space-2xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.25);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-border-light);
    background: var(--color-bg-elevated);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Hero Code Block */
.hero-code {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 560px;
    min-height: 200px;
}

.code-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border-light);
}

.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-title {
    margin-left: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.code-block {
    padding: var(--space-lg);
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-x: auto;
    background: transparent;
}

.code-block code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: var(--color-text-secondary);
}

/* Terminal Animation */
.terminal-animated {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: var(--space-xl);
    line-height: 2.2;
}

.terminal-line {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    color: var(--color-text-secondary);
}

.terminal-line .typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
}

/* Line 1: Command typing */
.terminal-line.line-1 {
    opacity: 1;
}

.terminal-line.line-1 .typing-text {
    animation: typing-line1 3.5s steps(70, end) 0.8s forwards;
}

/* Blinking cursor */
.cursor {
    opacity: 1;
    animation: blink 0.8s step-end infinite;
    color: var(--color-text);
}

/* Line 2: First result */
.terminal-line.line-2 {
    animation: fadeIn 0.4s ease 4.8s forwards;
}

.terminal-line.line-2 .typing-text {
    animation: typing-line2 1s steps(28, end) 5s forwards;
}

/* Line 3: Second result */
.terminal-line.line-3 {
    animation: fadeIn 0.4s ease 6.2s forwards;
}

.terminal-line.line-3 .typing-text {
    animation: typing-line3 0.8s steps(24, end) 6.4s forwards;
}

@keyframes typing-line1 {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typing-line2 {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typing-line3 {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.code-prompt {
    color: var(--color-accent);
    user-select: none;
}

.code-success {
    color: var(--color-success);
}

.code-keyword {
    color: #ff7b72;
}

.code-type {
    color: #79c0ff;
}

.code-string {
    color: #a5d6ff;
}

.code-number {
    color: #79c0ff;
}

.code-comment {
    color: var(--color-text-muted);
    font-style: italic;
}

.code-builtin {
    color: #ffa657;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: var(--container-narrow);
    margin: 0 auto var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ========================================
   Problem Section
   ======================================== */
.section-problem {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.problem-card {
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.problem-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Solution Section
   ======================================== */
.solution-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.solution-content h2 {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.solution-content p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.check {
    color: var(--color-success);
    font-weight: 600;
}

.comparison {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.comparison-before,
.comparison-after {
    flex: 1;
}

.comparison-arrow {
    font-size: 2rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.comparison-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.comparison-label-accent {
    color: var(--color-accent);
}

.code-mini {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    overflow-x: auto;
}

.code-mini pre {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.6;
}

.code-mini code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: var(--color-text-secondary);
}

.code-mini-accent {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
}

/* ========================================
   Features Section
   ======================================== */
.section-features {
    background: var(--gradient-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--gradient-card), var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-card > p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.feature-code {
    background: var(--color-bg-code);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.feature-code code {
    background: none;
    padding: 0;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* ========================================
   Usage Section (Steps)
   ======================================== */
.section-usage {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
}

.steps {
    max-width: var(--container-narrow);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #000;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step-content > p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 1rem;
}

.code-block-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ========================================
   Generated Mock Section
   ======================================== */
.section-generated {
    border-bottom: 1px solid var(--color-border);
}

.generated-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.generated-info h2 {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.generated-info > p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.generated-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.generated-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.generated-code {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   API Section
   ======================================== */
.section-api {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
}

.api-table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-3xl);
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.api-table th,
.api-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.api-table th {
    background: var(--color-bg-elevated);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.api-table td {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.api-table tr:last-child td {
    border-bottom: none;
}

.api-table code {
    font-size: 0.85rem;
}

.api-examples h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.api-example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.api-example {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.api-example h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.code-block-small {
    padding: var(--space-md);
    font-size: 0.8rem;
    background: var(--color-bg-code);
    border-radius: var(--radius-sm);
    margin: 0;
    overflow-x: auto;
}

.code-block-small code {
    background: none;
    padding: 0;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* ========================================
   Xcode Integration Section
   ======================================== */
.section-xcode {
    border-bottom: 1px solid var(--color-border);
}

.xcode-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-3xl);
    align-items: center;
}

.xcode-content h2 {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.xcode-content > p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.xcode-steps {
    list-style: none;
    counter-reset: xcode-step;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.xcode-steps li {
    counter-increment: xcode-step;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.xcode-steps li::before {
    content: counter(xcode-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-border);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.xcode-code {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Installation Section
   ======================================== */
.section-install {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
}

.install-option {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.install-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.install-icon {
    font-size: 1.5rem;
}

.install-option h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.install-option > p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

/* ========================================
   CTA Section
   ======================================== */
.section-cta {
    background: var(--gradient-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--space-4xl) 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-content > p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
}

.footer-name {
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

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

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-meta p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .solution-layout,
    .generated-layout,
    .xcode-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .comparison {
        flex-direction: column;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .hero-subtitle {
        margin: 0 auto var(--space-2xl);
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .step {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .install-grid {
        grid-template-columns: 1fr;
    }
    
    .api-example-grid {
        grid-template-columns: 1fr;
    }
    
    .code-block {
        padding: var(--space-md);
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .feature-card,
    .btn-primary {
        transition: none;
    }
    
    .feature-card:hover,
    .btn-primary:hover {
        transform: none;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--color-text);
}
