/* ========================================
   PowerLinked - LinkedIn Blue Theme
   ======================================== */

:root {
    --bg-primary: #f3f2ef;
    --bg-secondary: #ffffff;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;

    --text-primary: #191919;
    --text-secondary: #666666;
    --text-muted: #8f8f8f;

    --accent: #0a66c2;
    --accent-hover: #004182;
    --accent-light: rgba(10, 102, 194, 0.08);
    --accent-glow: rgba(10, 102, 194, 0.25);

    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --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 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

/* Accessibility: Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: float 25s ease-in-out infinite;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(10, 102, 194, 0.15) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 102, 194, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -200px;
    animation-delay: -8s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(10, 102, 194, 0.08) 0%, transparent 70%);
    top: 40%;
    right: 5%;
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 32px;
    width: auto;
}

.nav-cta {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: var(--accent);
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 32px 80px;
}

/* Network background pattern */
.hero::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3C!-- Nodes --%3E%3Ccircle cx='100' cy='150' r='8' fill='%230a66c2' opacity='0.3'/%3E%3Ccircle cx='250' cy='80' r='6' fill='%230a66c2' opacity='0.25'/%3E%3Ccircle cx='400' cy='120' r='10' fill='%230a66c2' opacity='0.2'/%3E%3Ccircle cx='550' cy='60' r='5' fill='%230a66c2' opacity='0.3'/%3E%3Ccircle cx='700' cy='140' r='8' fill='%230a66c2' opacity='0.25'/%3E%3Ccircle cx='150' cy='300' r='6' fill='%230a66c2' opacity='0.2'/%3E%3Ccircle cx='300' cy='250' r='12' fill='%230a66c2' opacity='0.15'/%3E%3Ccircle cx='500' cy='280' r='7' fill='%230a66c2' opacity='0.25'/%3E%3Ccircle cx='650' cy='320' r='9' fill='%230a66c2' opacity='0.2'/%3E%3Ccircle cx='80' cy='450' r='7' fill='%230a66c2' opacity='0.25'/%3E%3Ccircle cx='200' cy='500' r='10' fill='%230a66c2' opacity='0.2'/%3E%3Ccircle cx='380' cy='420' r='6' fill='%230a66c2' opacity='0.3'/%3E%3Ccircle cx='520' cy='480' r='8' fill='%230a66c2' opacity='0.2'/%3E%3Ccircle cx='720' cy='500' r='6' fill='%230a66c2' opacity='0.25'/%3E%3Ccircle cx='120' cy='650' r='9' fill='%230a66c2' opacity='0.2'/%3E%3Ccircle cx='280' cy='700' r='5' fill='%230a66c2' opacity='0.3'/%3E%3Ccircle cx='450' cy='620' r='11' fill='%230a66c2' opacity='0.15'/%3E%3Ccircle cx='600' cy='680' r='7' fill='%230a66c2' opacity='0.25'/%3E%3Ccircle cx='750' cy='720' r='8' fill='%230a66c2' opacity='0.2'/%3E%3C!-- Connection lines --%3E%3Cline x1='100' y1='150' x2='250' y2='80' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='250' y1='80' x2='400' y2='120' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='400' y1='120' x2='550' y2='60' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='550' y1='60' x2='700' y2='140' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='100' y1='150' x2='150' y2='300' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='250' y1='80' x2='300' y2='250' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='400' y1='120' x2='500' y2='280' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='700' y1='140' x2='650' y2='320' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='150' y1='300' x2='300' y2='250' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='300' y1='250' x2='500' y2='280' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='500' y1='280' x2='650' y2='320' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='80' y1='450' x2='150' y2='300' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='200' y1='500' x2='300' y2='250' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='380' y1='420' x2='500' y2='280' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='520' y1='480' x2='650' y2='320' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='720' y1='500' x2='650' y2='320' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='80' y1='450' x2='200' y2='500' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='200' y1='500' x2='380' y2='420' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='380' y1='420' x2='520' y2='480' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='520' y1='480' x2='720' y2='500' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='120' y1='650' x2='80' y2='450' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='280' y1='700' x2='200' y2='500' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='450' y1='620' x2='380' y2='420' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='600' y1='680' x2='520' y2='480' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='750' y1='720' x2='720' y2='500' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='120' y1='650' x2='280' y2='700' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='280' y1='700' x2='450' y2='620' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3Cline x1='450' y1='620' x2='600' y2='680' stroke='%230a66c2' stroke-width='1' opacity='0.12'/%3E%3Cline x1='600' y1='680' x2='750' y2='720' stroke='%230a66c2' stroke-width='1' opacity='0.1'/%3E%3C!-- Cross connections --%3E%3Cline x1='100' y1='150' x2='300' y2='250' stroke='%230a66c2' stroke-width='1' opacity='0.08'/%3E%3Cline x1='400' y1='120' x2='380' y2='420' stroke='%230a66c2' stroke-width='1' opacity='0.06'/%3E%3Cline x1='650' y1='320' x2='600' y2='680' stroke='%230a66c2' stroke-width='1' opacity='0.08'/%3E%3Cline x1='200' y1='500' x2='450' y2='620' stroke='%230a66c2' stroke-width='1' opacity='0.06'/%3E%3Cline x1='300' y1='250' x2='380' y2='420' stroke='%230a66c2' stroke-width='1' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    animation: fadeUp 0.8s var(--ease-out) both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    background: var(--accent-light);
    border: 1px solid rgba(10, 102, 194, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 32px;
    animation: fadeUp 0.8s var(--ease-out) 0.1s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.title-line {
    display: block;
}

.title-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 420px;
    margin-bottom: 40px;
    line-height: 1.7;
    animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}

.hero-cta {
    margin-bottom: 48px;
    animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--accent);
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-light);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: fadeUp 0.8s var(--ease-out) 0.5s both;
}

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

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
}

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

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

/* Hero Visual / Demo */
.hero-visual {
    animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}

.demo-window {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.demo-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.demo-dots {
    display: flex;
    gap: 8px;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
}

.demo-dots span:first-child { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:last-child { background: #28c840; }

.demo-content {
    padding: 24px;
}

.demo-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 20px;
}

.demo-search svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.demo-search-text {
    color: var(--text-primary);
    font-size: 15px;
}

.demo-cursor {
    width: 2px;
    height: 18px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
}

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

.demo-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s var(--ease-out);
}

.demo-result:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.result-tag {
    font-size: 13px;
    color: var(--accent);
}

.result-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    padding: 6px 12px;
    background: var(--accent-light);
    border-radius: 100px;
}

/* How It Works Section */
.how-it-works {
    position: relative;
    z-index: 1;
    padding: 120px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-title em {
    font-style: italic;
    color: var(--accent);
}

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

.step {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step:hover::before {
    opacity: 1;
}

.step-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 24px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* Signup Section */
.signup-section {
    position: relative;
    z-index: 1;
    padding: 120px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.signup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.testimonials {
    padding-top: 20px;
}

.testimonial-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.testimonial {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s var(--ease-out);
}

.testimonial:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.testimonial p {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.testimonial cite {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-style: normal;
}

.testimonial cite strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial cite span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Signup Form */
.signup-form-wrapper {
    position: sticky;
    top: 120px;
}

.signup-form {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.signup-form h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.signup-form > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.alpha-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--text-muted);
}

.form-row select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238f8f8f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--accent);
    color: white;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit svg {
    transition: transform 0.3s var(--ease-out);
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

.form-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 24px 32px;
    background: white;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a,
.footer-link-btn {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.footer-links a:hover,
.footer-link-btn:hover {
    color: var(--accent);
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s var(--ease-out);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-primary);
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-out);
    line-height: 1;
}

.modal-close:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.modal-body h3:first-of-type {
    margin-top: 0;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.modal-body ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.modal-body li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}

.modal-updated {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    font-style: italic;
    margin-bottom: 24px !important;
}

@media (max-width: 640px) {
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

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

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 60px;
        min-height: auto;
        padding: 120px 24px 80px;
    }

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

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

    .hero-cta {
        display: flex;
        justify-content: center;
    }

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

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

    .signup-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .signup-form-wrapper {
        position: static;
    }

    .testimonials {
        order: 2;
    }

    .signup-form-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

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

    .how-it-works,
    .signup-section {
        padding: 80px 20px;
    }

    .form-row-split {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

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

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .signup-form {
        padding: 24px 20px;
    }

    .step {
        padding: 24px 20px;
    }

    .section-title {
        font-size: 28px;
    }

    /* Larger touch targets for mobile */
    .nav-cta {
        padding: 12px 20px;
        min-height: 44px;
    }

    .btn-primary,
    .btn-submit {
        padding: 16px 24px;
        min-height: 48px;
        font-size: 16px;
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
        padding: 16px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        min-height: 48px;
    }

    .footer-links {
        gap: 24px;
    }

    .footer-links a {
        padding: 8px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover,
    .btn-submit:hover,
    .nav-cta:hover,
    .step:hover,
    .testimonial:hover,
    .demo-result:hover {
        transform: none;
    }
}

/* Success message styles */
.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-message .success-icon {
    font-size: 56px;
    color: var(--accent);
    margin-bottom: 16px;
}

.success-message h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 12px;
}

.success-message > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.success-details {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: left;
    border: 1px solid var(--border);
}

.success-details p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.success-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.success-details li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.success-details li:last-child {
    border-bottom: none;
}

.success-note {
    background: var(--accent-light);
    border: 1px solid rgba(10, 102, 194, 0.2);
    border-radius: 10px;
    padding: 16px;
    color: var(--accent);
    font-size: 14px;
    margin-top: 24px;
    text-align: left;
}
