/* ========================================
   INFRIST — Coming Soon Page
   Premium Dark SaaS Aesthetic
   ======================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Colors */
    --bg: #06080D;
    --bg-subtle: #0C0F18;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --text: #F5F5F7;
    --text-secondary: #8A8F98;
    --text-tertiary: #5A5F6B;

    --purple: #7C5CFF;
    --purple-light: #9B7FFF;
    --blue: #4FD1FF;
    --blue-light: #7DDEFF;
    --green: #34D399;

    --glow-purple: rgba(124, 92, 255, 0.15);
    --glow-blue: rgba(79, 209, 255, 0.12);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-pad: clamp(80px, 12vw, 160px) clamp(24px, 8vw, 160px);

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

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

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: drift 20s ease-in-out infinite alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--purple);
    top: -15%;
    left: 20%;
    animation-duration: 25s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--blue);
    top: 40%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--purple);
    bottom: -10%;
    left: -5%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 40px) scale(1.15);
    }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 clamp(24px, 5vw, 80px);
    padding-left: max(clamp(24px, 5vw, 80px), env(safe-area-inset-left));
    padding-right: max(clamp(24px, 5vw, 80px), env(safe-area-inset-right));
    background: rgba(6, 8, 13, 0.7);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    transition: opacity 0.2s;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    opacity: 0.75;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    padding: 11px;
    margin: -11px;
    box-sizing: content-box;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
}

.nav-links.mobile-open {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(6, 8, 13, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.nav-links.mobile-open a {
    font-size: 1.1rem;
}


.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple), #5A3EDB);
    color: white;
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
    letter-spacing: -0.01em;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}

/* ---------- Sections ---------- */
.section {
    padding: var(--section-pad);
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 1.25rem;
}

.ai-label {
    color: var(--blue);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1rem;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--purple-light), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px clamp(24px, 5vw, 80px) 80px;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--purple-light);
    background: rgba(124, 92, 255, 0.08);
    border: 1px solid rgba(124, 92, 255, 0.2);
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 2rem;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-light);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    background: linear-gradient(135deg, #fff 20%, var(--purple-light) 50%, var(--blue) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

/* ---------- Form ---------- */
.input-group {
    display: flex;
    gap: 0;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 5px;
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.08);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: var(--text);
    font-family: var(--font-body);
}

.input-group input::placeholder {
    color: #ffffff;
    opacity: 1;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--purple), #5A3EDB);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
    letter-spacing: -0.01em;
}

.btn-glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
}

/* ── Form success state ── */
.form-success {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    animation: fadeIn 0.4s ease;
}

.form-success-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34D399, #059669);
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-success-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}


/* ── Form error message ── */
.form-error {
    font-size: 0.8rem;
    color: #F87171;
    margin-top: 8px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

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

.form-note a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(138, 143, 152, 0.3);
    transition: color 0.2s;
}

.form-note a:hover {
    color: var(--purple-light);
}

/* ---------- Hero Visual ---------- */
.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    transform: rotateY(-8deg) rotateX(4deg);
    transform-style: preserve-3d;
    animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: rotateY(-8deg) rotateX(4deg) translateY(0);
    }

    50% {
        transform: rotateY(-8deg) rotateX(4deg) translateY(-12px);
    }
}

.mockup-card {
    position: absolute;
    background: rgba(12, 15, 24, 0.85);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.mockup-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-main {
    width: 300px;
    top: 20px;
    left: 0;
    z-index: 3;
}

.card-secondary {
    width: 260px;
    top: 180px;
    left: 170px;
    z-index: 2;
}

.card-mini {
    width: 200px;
    top: 50px;
    left: 260px;
    z-index: 4;
    padding: 1rem;
    font-size: 0.78rem;
}

.mc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mc-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.mc-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.mc-badge.up {
    color: var(--green);
    background: rgba(52, 211, 153, 0.1);
}

.mc-metric {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0.5rem;
}

/* Chart line (area) */
.mc-chart {
    height: 60px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.chart-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.2) 0%, transparent 100%);
    clip-path: polygon(0% 80%, 10% 60%, 20% 65%, 35% 40%, 50% 50%, 65% 25%, 80% 35%, 90% 15%, 100% 20%, 100% 100%, 0% 100%);
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    border: none;
    /* Using SVG-like path via clip-path */
    background: var(--purple);
    opacity: 0.8;
    clip-path: polygon(0% 80%, 10% 60%, 20% 65%, 35% 40%, 50% 50%, 65% 25%, 80% 35%, 90% 15%, 100% 20%, 100% 22%, 90% 17%, 80% 37%, 65% 27%, 50% 52%, 35% 42%, 20% 67%, 10% 62%, 0% 82%);
}

/* Bar chart */
.mc-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
}

.bar {
    flex: 1;
    height: var(--h);
    background: rgba(79, 209, 255, 0.25);
    border-radius: 4px 4px 0 0;
    transition: background 0.3s;
}

.bar.active {
    background: var(--blue);
}

/* Mini card rows */
.mini-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    justify-content: space-between;
}

.mini-row+.mini-row {
    border-top: 1px solid var(--border);
}

.mini-row strong {
    color: var(--text);
    font-weight: 600;
    font-family: var(--font-display);
}

.mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mini-dot.green {
    background: var(--green);
}

.mini-dot.blue {
    background: var(--blue);
}

.mini-dot.purple {
    background: var(--purple);
}

/* ---------- Features Grid ---------- */
.features-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease-out);
    position: relative;
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    transform: translateY(-4px);
}

.fc-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(124, 92, 255, 0.08);
    color: var(--purple-light);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.ai-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--purple-light);
    background: rgba(124, 92, 255, 0.08);
    border: 1px solid rgba(124, 92, 255, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 1rem;
}

/* ---------- AI Grid ---------- */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.ai-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: border-color 0.3s, transform 0.35s var(--ease-out);
}

.ai-card:hover {
    border-color: rgba(79, 209, 255, 0.2);
    transform: translateY(-3px);
}

.ai-emoji {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.ai-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    margin-bottom: 0.4rem;
}

.ai-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Why Section ---------- */
.why-box {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.06), transparent 60%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(2.5rem, 5vw, 4rem);
}

.why-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Proof ---------- */
.proof-section {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.proof-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
}

.proof-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.proof-logos span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.6;
    letter-spacing: -0.01em;
}

/* ---------- CTA Section ---------- */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
    z-index: -1;
}

.cta-box {
    max-width: 560px;
    margin: 0 auto;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-form .input-group {
    margin: 0 auto;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Stagger feature cards */
.feature-card.reveal:nth-child(1) {
    transition-delay: 0s;
}

.feature-card.reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.feature-card.reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.feature-card.reveal:nth-child(4) {
    transition-delay: 0.24s;
}

/* Stagger AI cards */
.ai-card.reveal:nth-child(1) {
    transition-delay: 0s;
}

.ai-card.reveal:nth-child(2) {
    transition-delay: 0.06s;
}

.ai-card.reveal:nth-child(3) {
    transition-delay: 0.12s;
}

.ai-card.reveal:nth-child(4) {
    transition-delay: 0.18s;
}

.ai-card.reveal:nth-child(5) {
    transition-delay: 0.24s;
}

.ai-card.reveal:nth-child(6) {
    transition-delay: 0.30s;
}

/* ========== RESPONSIVE ========== */
/* Tablet */
@media (max-width: 1024px) {
    .nav-cta {
        display: block;
    }

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

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

    .input-group {
        margin: 0 auto;
    }

    .hero-visual {
        height: 400px;
        margin-top: 3rem;
    }

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

    .ai-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-box {
        padding: clamp(2rem, 4vw, 3rem);
    }
}

/* Mobile - Tablet Landscape and below */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
        height: 70px;
    }

    .nav-inner {
        gap: 10px;
        width: 100%;
    }

    .nav-logo {
        flex-shrink: 0;
    }

    .hamburger {
        display: flex;
        width: 26px;
        height: 20px;
        margin-left: auto;
    }

    .hamburger span {
        width: 26px;
        height: 2px;
    }

    .nav-cta {
        display: none;
    }

    /* Hide nav-links by default on mobile */
    .nav-links {
        display: none !important;
    }

    /* Show mobile menu when it has the mobile-open class */
    .nav-links.mobile-open {
        display: flex !important;
        top: 70px;
        padding: 2rem 20px;
    }

    /* Make logo properly sized and visible on mobile */
    .logo-img {
        height: 140px !important;
        max-width: 180px !important;
        width: auto !important;
        min-width: 40px !important;
        object-fit: contain;
    }

    /* Hamburger menu sizing on mobile */
    .hamburger {
        width: 28px;
        height: 22px;
    }

    .hamburger span {
        width: 28px;
        height: 2px;
    }

    .nav-inner {
        gap: 15px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 2rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 2.8rem);
        letter-spacing: -0.02em;
    }

    .hero-visual {
        height: 320px;
        margin-top: 3rem;
    }

    .mockup-wrapper {
        transform: scale(0.75) rotateY(-8deg) rotateX(4deg);
        transform-origin: top center;
    }

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

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

    .ai-grid .ai-card {
        padding: 1.25rem;
    }

    .input-group {
        flex-direction: column;
        width: 100%;
    }

    .input-group input {
        width: 100%;
        text-align: center;
        font-size: 16px; /* prevent iOS auto-zoom on focus */
    }

    .btn-glow {
        justify-content: center;
        width: 100%;
    }

    .cta-section {
        padding: 3rem 1.5rem;
    }

    .cta-section::before {
        width: 300px;
        height: 300px;
    }

    .cta-box {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .features-section,
    .ai-section,
    .why-section {
        padding: 3rem 1.5rem;
    }

    .proof-logos {
        gap: 1.5rem;
    }

    .proof-logos span {
        font-size: 0.9rem;
    }

    .form-note {
        text-align: center;
    }

    .form-note a {
        display: inline-block;
    }
}

/* Medium-small phones (481px–600px) */
@media (max-width: 600px) {
    .hero-inner {
        gap: 2rem;
    }

    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }

    .mockup-wrapper {
        transform: scale(0.7) rotateY(-8deg) rotateX(4deg);
        transform-origin: top center;
    }
}

/* Mobile - Small phones */
@media (max-width: 480px) {
    .logo-img {
        height: 50px;
        width: auto;
    }

    .nav-links.mobile-open {
        top: 60px;
        padding: 1.5rem 15px;
    }

    .nav-links.mobile-open a {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.4rem);
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-visual {
        height: 280px;
    }

    .mockup-wrapper {
        transform: scale(0.65) rotateY(-8deg) rotateX(4deg);
        transform-origin: top center;
    }

    .mockup-card {
        padding: 1rem;
    }

    .mc-title {
        font-size: 0.7rem;
    }

    .mc-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .mc-metric {
        font-size: 1.1rem;
    }

    .mc-chart,
    .mc-bars {
        height: 45px;
    }

    .mini-row {
        font-size: 0.7rem;
    }

    .features-section,
    .ai-section,
    .why-section,
    .cta-section {
        padding: 2rem 1rem;
    }

    .why-box {
        padding: 2rem 1rem;
    }

    .ai-grid {
        gap: 1rem;
    }

    .ai-card h4 {
        font-size: 0.95rem;
    }

    .ai-card p {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .section-desc {
        font-size: 1rem;
    }

    .proof-logos {
        gap: 1rem;
    }

    .proof-logos span {
        font-size: 0.8rem;
    }

    .cta-box h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .cta-box p {
        font-size: 1rem;
    }

    .card-main {
        width: 260px;
    }

    .card-secondary {
        width: 220px;
        top: 150px;
        left: 120px;
    }

    .card-mini {
        width: 180px;
        top: 40px;
        left: 180px;
        padding: 0.75rem;
    }
}

/* Mobile - Extra small phones */
@media (max-width: 360px) {
    .hero h1 {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }

    .btn-glow {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .nav-cta {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .feature-card,
    .ai-card {
        padding: 1.5rem;
    }

    .features-grid {
        gap: 1rem;
    }

    .ai-grid {
        gap: 0.75rem;
    }
}