/* =============================================
   STRYD Orthopedics — Global Styles
   Colors: Blue #0A7AFF, Black #0A0A0A
   Fonts: Space Grotesk (headings), Inter (body)
   ============================================= */

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

/* Design tokens — change brand colors, fonts, and spacing here */
:root {
    /* Brand blues */
    --blue: #0A7AFF;            /* Primary brand blue */
    --blue-dark: #0060D0;       /* Hover/active state */
    --blue-light: #3D9AFF;      /* Accent/gradient end */
    --blue-glow: rgba(10, 122, 255, 0.15);        /* Subtle glow bg */
    --blue-glow-strong: rgba(10, 122, 255, 0.3);  /* Button hover shadow */

    /* Neutral scale (dark theme) */
    --black: #0A0A0A;
    --gray-900: #111111;    /* Card backgrounds */
    --gray-800: #1A1A1A;    /* Input backgrounds */
    --gray-700: #2A2A2A;    /* Borders, dividers */
    --gray-600: #3A3A3A;    /* Placeholder borders */
    --gray-500: #6B6B6B;    /* Muted text */
    --gray-400: #8A8A8A;    /* Body text */
    --gray-300: #AAAAAA;    /* Labels */
    --gray-200: #D0D0D0;    /* Default body color */
    --gray-100: #EBEBEB;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --nav-height: 80px;
    --section-padding: 120px;   /* Vertical padding between sections */
    --container-max: 1200px;    /* Max content width */

    /* Shared easing curve */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--gray-200);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--gray-900);
}
::-webkit-scrollbar-thumb {
    background: var(--gray-600);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* --- Selection --- */
::selection {
    background: var(--blue);
    color: var(--white);
}

/* =============================================
   Navigation
   ============================================= */
/* Transparent at top, gains blur+bg on scroll (JS adds .scrolled class) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-icon {
    width: 40px;
    height: 28px;
}

.logo-img {
    height: 85px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
}


.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

/* Animated blue underline — width:0 by default, expands on hover/active */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    background: var(--blue);
    padding: 10px 24px;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--blue-glow-strong);
}

/* Hidden on desktop, shown at 768px breakpoint */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
    border-radius: 2px;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--blue-glow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-600);
}

.btn-secondary:hover {
    border-color: var(--gray-400);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-height) + 40px) 0 100px; /* top: nav + breathing room, bottom: space for scroll indicator */
}

/* Faint grid pattern that fades out at edges (radial mask) */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Large blue radial glow in top-right corner — decorative ambient light */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Slightly wider text column */
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--blue-light);
    background: rgba(10, 122, 255, 0.08);
    border: 1px solid rgba(10, 122, 255, 0.15);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

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

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

/* Blue gradient text effect — used on accent words in headings */
.title-accent {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 10/12;
    border-radius: 20px;
    overflow: hidden;
}

/* The actual product video / image */
.hero-img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.hero-image-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, var(--blue-glow-strong) 0%, transparent 70%);
    z-index: 0;
    filter: blur(50px);
}

/* Placeholder Image Styles — replace these divs with <img> tags when ready */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--gray-800);
    border: 1px dashed var(--gray-600);
    border-radius: 16px;
    color: var(--gray-500);
    font-size: 0.875rem;
    transition: all var(--transition);
}

.image-placeholder:hover {
    border-color: var(--blue);
    background: rgba(10, 122, 255, 0.03);
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--gray-600);
}

.placeholder-icon svg {
    width: 100%;
    height: 100%;
}

.hero-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
}

.product-placeholder-large {
    width: 100%;
    aspect-ratio: 3/4;
}

.product-placeholder-sm {
    width: 100%;
    aspect-ratio: 1/1;
}

/* Hero Scroll Indicator — pinned to absolute bottom of hero */
.hero-scroll-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 5;
    pointer-events: none;
}

.scroll-line {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, var(--gray-500), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* =============================================
   Section Shared Styles
   ============================================= */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.0625rem;
    color: var(--gray-400);
    line-height: 1.7;
}

/* =============================================
   Technology Section
   ============================================= */
.technology {
    padding: var(--section-padding) 0;
    position: relative;
}

.technology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-700), transparent);
}

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

.tech-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 16px;
    padding: 36px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

/* Blue top-border glow that fades in on hover */
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.tech-card:hover {
    border-color: var(--gray-700);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tech-card:hover::before {
    opacity: 1;
}

/* Featured card spans full row with 2-column internal layout */
.tech-card-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px 32px;
}

.tech-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-glow);
    border-radius: 10px;
    margin-bottom: 12px;
    color: var(--blue);
}

.tech-card-icon svg {
    width: 24px;
    height: 24px;
}

.tech-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.tech-card p {
    font-size: 0.9375rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* Signal Wave Animation — decorative pulsing lines in the EMG card */
.tech-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* ---- EMG Graph Visual ---- */
.emg-graph {
    position: relative;
    width: 100%;
    aspect-ratio: 400/180;
}

.emg-graph svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.emg-line {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: emg-draw 3s ease-in-out forwards, emg-pulse 4s ease-in-out 3s infinite;
}

.emg-fill {
    animation: emg-fade-in 1s ease-in-out 2.5s forwards;
    opacity: 0;
}

@keyframes emg-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes emg-pulse {
    0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 4px var(--blue)); }
    50% { opacity: 1; filter: drop-shadow(0 0 10px var(--blue-light)); }
}

@keyframes emg-fade-in {
    to { opacity: 0.15; }
}

/* ---- Home / Couch Visual ---- */
.home-visual {
    width: 100%;
}

.home-scene {
    width: 100%;
    height: auto;
}

.sleeve-pulse {
    animation: sleeve-glow 2.5s ease-in-out infinite;
}

.wifi-signal {
    animation: wifi-fade 2s ease-in-out infinite;
}

.wifi-signal:nth-of-type(2) { animation-delay: 0.3s; }
.wifi-signal:nth-of-type(3) { animation-delay: 0.6s; }

@keyframes sleeve-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes wifi-fade {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

/* =============================================
   Product Section
   ============================================= */
.product {
    padding: var(--section-padding) 0;
    position: relative;
}

.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-700), transparent);
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 80px;
}

.product-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
}

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

.gallery-wide .crop-sm {
    aspect-ratio: 2 / 1;
    background-size: 120%;
    background-position: 50% 38%;
}

/*
   CSS Image Cropping — composite is 1440x736
   ┌──────────┬────────────────┬──────────┐
   │ top-left │                │ top-right│
   │  0-20%   │  CENTER 22-62% │  64-100% │
   ├──────────┤  (full height) ├──────────┤
   │ bot-left │                │ bot-right│
   └──────────┴────────────────┴──────────┘

   Uses background-image on container divs for precise cropping.
   <img> tags are hidden (kept for SEO/accessibility alt text).
*/

/* Crop container base — clips overflow, shows background-image region */
.crop-container {
    overflow: hidden;
    border-radius: 16px;
    background-color: var(--gray-800);
    background-image: url('../images/sleeve-composite.png');
    background-repeat: no-repeat;
}

/* Hide <img> — background-image handles the visual cropping */
.crop-view {
    display: none;
}

/* Main image: tall, shows the front-facing product photo */
.crop-main {
    width: 100%;
    aspect-ratio: 3/4;
    background-image: url('../images/hero-sleeve.png');
    background-size: auto 100%;
    background-position: 50% 50%;
}

/* Gallery items: square, each shows one corner panel */
.crop-sm {
    width: 100%;
    aspect-ratio: 1/1;
}

/* Top-left panel: front angle with kneecap */
.crop-top-left {
    background-image: url('../images/topleftkneesleeve.png');
    background-size: auto 115%;
    background-position: 48% 38%;
}

/* Top-right panel: three-quarter / side angle */
.crop-top-right {
    background-image: url('../images/toprightkneesleeve.png');
    background-size: auto 115%;
    background-position: 48% 38%;
}

/* Bottom-left panel: back view of sleeve */
.crop-bottom-left {
    background-image: url('../images/backsidesleevewebsite.png');
    background-size: auto 115%;
    background-position: 48% 42%;
}

/* Bottom-right panel: close-up detail */
.crop-bottom-right {
    background-size: 550% auto;
    background-position: 100% 100%;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 32px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-glow);
    border-radius: 14px;
    margin: 0 auto 20px;
    color: var(--blue);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* =============================================
   Waitlist Section
   ============================================= */
.waitlist {
    padding: var(--section-padding) 0;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 122, 255, 0.03) 50%, transparent 100%);
}

.waitlist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-700), transparent);
}

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

.waitlist-form {
    margin-top: 40px;
}

.form-inline {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.form-inline .form-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    outline: none;
    transition: all var(--transition);
}

.form-inline .form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-inline .form-input::placeholder {
    color: var(--gray-500);
}

.form-note {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 12px;
}

/* =============================================
   Contact Section
   ============================================= */
.contact {
    padding: var(--section-padding) 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-700), transparent);
}

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

.contact-info {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
}

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info .section-description {
    text-align: left;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-glow);
    border-radius: 10px;
    color: var(--blue);
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 20px;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-300);
    letter-spacing: 0.02em;
}

.optional {
    color: var(--gray-500);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    outline: none;
    transition: all var(--transition);
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--gray-800);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    border-top: 1px solid var(--gray-800);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 60px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 12px;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* =============================================
   Scroll Reveal — JS adds .reveal to elements,
   IntersectionObserver adds .visible when in view.
   Delay classes stagger sibling animations.
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   Success Message — shown after form submit (JS
   replaces form HTML with this confirmation)
   ============================================= */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success .success-icon {
    width: 56px;
    height: 56px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #22c55e;
}

.form-success .success-icon svg {
    width: 28px;
    height: 28px;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.btn-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 12px;
    text-align: center;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* =============================================
   Responsive Design
   1024px: tablet — stack hero, single-col contact
   768px:  mobile — hamburger nav, single-col grids
   480px:  small  — stack CTA buttons vertically
   ============================================= */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-image {
        order: -1;
    }

    .hero-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }

    .tech-card-large {
        grid-column: span 3;
        grid-template-columns: 1fr;
    }

    .product-showcase {
        grid-template-columns: 1fr;
    }

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

    .contact-info {
        position: static;
        text-align: center;
    }

    .contact-info .section-tag,
    .contact-info .section-title,
    .contact-info .section-description {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --nav-height: 70px;
    }

    .nav-container {
        padding: 0 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--gray-900);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 24px;
        border-left: 1px solid var(--gray-800);
        transition: right var(--transition);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.125rem;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section-container {
        padding: 0 24px;
    }

    .hero-container {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .hero-scroll-indicator {
        display: none;
    }

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

    .tech-card-large {
        grid-column: span 1;
    }

    .product-gallery {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .form-inline {
        flex-direction: column;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }
}

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

    .hero-badge {
        font-size: 0.75rem;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

/* Mobile nav overlay — dark backdrop behind slide-out menu, created by JS */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
