/* ==========================================================================
   instarep.ly — Industrial Creator Aesthetic
   Inspired by Teenage Engineering + codybontecou
   ========================================================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Stark monochromatic with electric accent */
    --bg-primary: #F5F5F0;
    --bg-secondary: #EAEAE5;
    --bg-dark: #1A1A1A;
    --bg-darker: #0F0F0F;

    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #8A8A8A;
    --text-inverse: #F5F5F0;

    --accent: #808080;
    --accent-hover: #606060;
    --accent-muted: rgba(128, 128, 128, 0.15);

    --border: #D0D0CB;
    --border-dark: #2A2A2A;

    /* Typography */
    --font-mono: 'Space Mono', 'SF Mono', 'Monaco', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 64px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 40px rgba(128, 128, 128, 0.3);
}

/* 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(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-muted) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(245, 245, 240, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-bracket {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    background: var(--bg-dark) !important;
    color: var(--text-inverse) !important;
    padding: var(--space-sm) var(--space-md) !important;
    border-radius: 4px;
}

.nav-cta:hover {
    background: var(--accent) !important;
    color: var(--bg-dark) !important;
}

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

.hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + var(--space-4xl)) var(--space-lg) var(--space-3xl);
    position: relative;
    overflow: hidden;
}

/* Agency Badge in Hero */
.agency-badge {
    position: absolute;
    top: calc(var(--nav-height) + var(--space-lg));
    right: var(--space-lg);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    z-index: 10;
    animation: slideInRight 0.6s ease-out 0.8s backwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.agency-badge:hover {
    transform: translateX(-2px);
}

.badge-text {
    color: var(--text-secondary);
    font-weight: 400;
}

.badge-name {
    color: var(--text-primary);
    font-weight: 700;
}

.badge-arrow {
    opacity: 0.5;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.agency-badge:hover .badge-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 60px 60px,
        linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 60px 60px;
    opacity: 0.4;
    pointer-events: none;
}

.hero-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: 4px;
    margin-bottom: var(--space-lg);
}

.tag-key {
    font-size: 14px;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--bg-dark);
    background: var(--accent);
    padding: 0 var(--space-sm);
    display: inline-block;
    transform: rotate(-1deg);
    margin: var(--space-xs) 0;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--bg-dark);
    color: var(--text-inverse);
    border-color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

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

.btn-icon {
    display: flex;
    align-items: center;
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 16px;
}

.btn-large .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.btn-small {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
}

.btn-main {
    font-size: 18px;
    font-weight: 700;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

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

.stat-value {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: var(--bg-dark);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #333;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: var(--bg-darker);
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
}

.phone-reflection {
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 50px;
}

/* App Demo inside phone */
.app-demo {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 60px 0 0;
    background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%);
    position: relative;
}

/* Messages container that scrolls */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align messages to bottom */
    min-height: 0; /* Ensure proper flex behavior */
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.messages-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.comment-bubble {
    background: var(--bg-secondary);
    border-radius: 16px 16px 16px 4px;
    padding: 12px 16px;
    margin: 0 16px 16px 16px;
    max-width: 85%;
}

.comment-bubble.outgoing {
    align-self: flex-end;
    margin-left: auto;
    border-radius: 16px 16px 4px 16px;
}

.comment-user {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.comment-text {
    font-size: 14px;
    color: var(--text-primary);
}

.keyboard-area {
    background: #D1D3D9;
    border-radius: 0;
    padding: 0;
    flex-shrink: 0; /* Prevent keyboard from shrinking */
}

.keyboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 3px;
    background: #C9CBCF;
    border-bottom: 1px solid #B8BABF;
}

.profile-selector {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: none;
    border-radius: 14px;
    padding: 4px 10px 4px 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.profile-avatar {
    background: var(--accent);
    border-radius: 50%;
    padding: 3px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--bg-dark);
}

.profile-dropdown {
    font-size: 10px;
    color: #666;
    margin-left: 2px;
}

.generate-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #9A9A9A 0%, #707070 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 7px 16px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn:hover {
    background: linear-gradient(135deg, #8A8A8A 0%, #606060 100%);
    transform: scale(1.02);
    box-shadow:
        0 3px 6px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -1px 0 rgba(0,0,0,0.15);
}

.generate-btn.pulse {
    animation: pulse-glow 0.6s ease;
}

.generate-icon {
    font-size: 14px;
    filter: brightness(1.2);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(10deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 0 12px rgba(128, 128, 128, 0.6); }
    100% { box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
}

.ios-keyboard {
    padding: 8px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.keyboard-row {
    display: flex;
    justify-content: space-between;
    gap: 2px;
    padding: 0 2px;
}

.keyboard-row .key {
    flex: 1;
    min-width: 20px;
    height: 32px;
    background: #fff;
    border: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    box-shadow: 0 1px 0 #8E8E93;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.keyboard-row .key:hover {
    background: #E8E8ED;
}

.keyboard-row .key-shift,
.keyboard-row .key-delete {
    flex: 1.5;
    background: #AEB3BC;
    color: #000;
    font-size: 13px;
}

.keyboard-row .key-special {
    flex: 1.5;
    background: #AEB3BC;
    font-size: 10px;
    font-weight: 500;
}

.keyboard-row .key-globe {
    flex: 1;
    font-size: 12px;
}

.keyboard-row .key-space {
    flex: 4;
    background: #fff;
}

.keyboard-row .key-return {
    flex: 2;
    background: #AEB3BC;
    font-size: 10px;
    font-weight: 500;
}

.keyboard-bottom {
    padding: 0 2px;
}

/* Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.scroll-arrow {
    font-size: 18px;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.how-it-works {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--bg-dark);
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

.how-it-works .section-subtitle {
    color: rgba(255,255,255,0.6);
}

/* Steps Grid */
.steps-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.step {
    text-align: center;
    padding: var(--space-2xl);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.step:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.step-visual {
    margin-bottom: var(--space-xl);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 12px;
    position: relative;
}

/* Animated Icons */
.icon-clipboard {
    width: 36px;
    height: 44px;
    position: relative;
}

.clipboard-board {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 4px;
    position: relative;
}

.clipboard-board::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 10px;
    background: var(--bg-dark);
    border-radius: 2px;
}

.clipboard-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clipboard-lines span {
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 1px;
    animation: lineSlide 2s ease-in-out infinite;
}

.clipboard-lines span:nth-child(2) {
    width: 16px;
    animation-delay: 0.2s;
}

.clipboard-lines span:nth-child(3) {
    width: 12px;
    animation-delay: 0.4s;
}

@keyframes lineSlide {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(4px); opacity: 0.6; }
}

.icon-keyboard {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.key-row {
    display: flex;
    gap: 4px;
}

.mini-key {
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border-radius: 2px;
    transition: background var(--transition-fast);
}

.mini-key.active {
    background: #fff;
    animation: keyPress 1s ease-in-out infinite;
}

@keyframes keyPress {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.9); background: var(--bg-dark); }
}

.icon-send {
    position: relative;
    width: 40px;
    height: 40px;
}

.send-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
}

.arrow-line {
    position: absolute;
    width: 20px;
    height: 3px;
    background: var(--bg-dark);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border-radius: 2px;
}

.arrow-head {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-right: 3px solid var(--bg-dark);
    border-top: 3px solid var(--bg-dark);
    border-radius: 2px;
}

.send-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.send-rings span {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    opacity: 0;
    animation: ringPulse 2s ease-out infinite;
}

.send-rings span:nth-child(2) { animation-delay: 0.4s; }
.send-rings span:nth-child(3) { animation-delay: 0.8s; }

@keyframes ringPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.step-content {
    text-align: center;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: var(--space-sm);
}

.step-title {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.step-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Workflow Visual */
.workflow-visual {
    max-width: 600px;
    margin: var(--space-3xl) auto 0;
    position: relative;
    padding: var(--space-lg) 0;
}

.workflow-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-dark);
}

.workflow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent);
    animation: lineGrow 3s ease-in-out infinite;
}

@keyframes lineGrow {
    0% { width: 0; }
    100% { width: 100%; }
}

.workflow-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.node {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-darker);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    transition: all var(--transition-base);
}

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

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

.features {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--bg-primary);
}

.features-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-large {
    grid-column: span 1;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.feature-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: var(--space-md);
}

.icon-char {
    font-size: 24px;
}

.feature-title {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-metric {
    margin-top: auto;
    padding-top: var(--space-xl);
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-muted);
}

.metric-unit {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--text-muted);
}

/* Feature Chart */
.feature-chart {
    height: 120px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-sm);
}

.bar {
    flex: 1;
    height: var(--height);
    background: var(--accent);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all var(--transition-base);
    animation: barGrow 1s ease-out backwards;
}

.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.5s; }
.bar:nth-child(6) { animation-delay: 0.6s; }
.bar:nth-child(7) { animation-delay: 0.7s; }

@keyframes barGrow {
    from {
        height: 0;
        opacity: 0;
    }
}

.bar span {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.bar:hover {
    background: var(--bg-dark);
}

/* ==========================================================================
   Social Proof / Testimonial
   ========================================================================== */

.social-proof {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--bg-secondary);
}

.proof-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-mark {
    font-family: var(--font-mono);
    font-size: 120px;
    color: var(--accent);
    line-height: 1;
    position: absolute;
    top: -40px;
    left: -20px;
    opacity: 0.3;
}

.testimonial {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--bg-dark);
}

.author-info {
    text-align: left;
}

.author-name {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    display: block;
}

.author-stats {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   Setup Guide
   ========================================================================== */

.setup-guide {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--bg-primary);
}

.setup-steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.setup-step {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.setup-step:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}

.setup-number {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.setup-content h4 {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.setup-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.setup-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.setup-path code {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--bg-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
}

.setup-path span {
    color: var(--text-muted);
    font-size: 12px;
}

.setup-connector {
    width: 2px;
    height: 24px;
    background: var(--border);
    margin-left: 43px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, var(--accent-muted) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(128, 128, 128, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.cta-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
}

.cta-content {
    color: var(--text-inverse);
}

.cta-title {
    font-family: var(--font-mono);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: var(--space-lg);
}

.cta-line {
    display: block;
}

.cta-line:last-child {
    color: var(--accent);
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-xl);
}

/* Floating Keys Animation */
.cta-keyboard {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-keys {
    position: relative;
    width: 200px;
    height: 200px;
}

.floating-key {
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    background: var(--accent);
    color: var(--bg-dark);
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(128, 128, 128, 0.3);
    animation: floatKey 4s ease-in-out infinite;
    animation-delay: var(--delay);
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
}

@keyframes floatKey {
    0%, 100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
    }
    50% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 15px));
    }
}

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

.footer {
    background: var(--bg-darker);
    color: var(--text-inverse);
    padding: var(--space-3xl) var(--space-lg) var(--space-lg);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-dark);
}

.footer-brand .logo {
    color: var(--text-inverse);
    font-size: 20px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: var(--space-sm);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.footer-col h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-made {
    font-family: var(--font-mono);
}

/* Agency Credit */
.agency-credit {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.credit-text {
    color: rgba(255,255,255,0.4);
}

.agency-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 2px 6px;
    margin: 0 2px;
    border-radius: 4px;
    position: relative;
}

.agency-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    opacity: 0;
    border-radius: 4px;
    transition: opacity var(--transition-fast);
}

.agency-link:hover {
    color: var(--bg-darker);
}

.agency-link:hover::before {
    opacity: 1;
}

.agency-name {
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.agency-arrow {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-fast);
}

.agency-link:hover .agency-arrow {
    transform: translate(2px, -2px);
}

.credit-tagline {
    color: rgba(255,255,255,0.25);
    font-size: 12px;
}

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

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-large {
        grid-row: span 1;
    }

    .feature-wide {
        grid-column: span 2;
    }

    .cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-keyboard {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero {
        padding-top: calc(var(--nav-height) + var(--space-2xl));
    }

    .agency-badge {
        position: static;
        margin: 0 auto var(--space-lg);
        display: inline-flex;
        animation: fadeInUp 0.6s ease-out 0.4s backwards;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .feature-chart {
        margin-top: var(--space-lg);
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .agency-credit {
        flex-wrap: wrap;
        justify-content: center;
    }

    .credit-tagline {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .setup-step {
        flex-direction: column;
        gap: var(--space-md);
    }

    .setup-connector {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   Utilities & Animations
   ========================================================================== */

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
