@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
    --accent: #0891b2;
    --accent-dark: #0e7490;
    --dark: #09090b;
    --dark2: #18181b;
    --dark3: #27272a;
    --muted: #71717a;
    --light: #fafafa;
    --border-dark: #27272a;
    --border-light: #e4e4e7;
    --green: #22c55e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
}

/* ─── Nav ────────────────────────────────────────────── */
nav {
    background: rgba(9, 9, 11, 0.96);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-dark);
}

nav a { transition: color 0.2s; }
nav a:hover { color: var(--accent) !important; }

/* ─── Hero ───────────────────────────────────────────── */
.hero-full {
    min-height: 100vh;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle dot grid */
.hero-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #3f3f46 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
}

/* Warm glow — bottom right only, restrained */
.hero-full::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(8,145,178,0.15) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.75rem, 5.5vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fafafa;
    margin: 0 0 1.5rem;
}

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

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--muted);
    line-height: 1.75;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

/* ─── Shared ─────────────────────────────────────────── */
.products-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--dark);
    margin: 0;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 480px;
}

/* ─── Products section ───────────────────────────────── */
.products-section {
    background: #fff;
    border-top: 1px solid var(--border-light);
}

/* ─── ClearGym card ──────────────────────────────────── */
.cleargym-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    background: var(--light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 3rem 3.5rem;
}

.cleargym-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--dark);
    margin: 0;
}

.cleargym-card__desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
}

.cleargym-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1rem;
}

.cleargym-card__features li {
    font-size: 0.825rem;
    color: var(--dark2);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.5;
}

.cleargym-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 0.75rem;
}

/* ─── Browser frame mockup ───────────────────────────── */
.browser-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.1),
        0 24px 64px rgba(0,0,0,0.15),
        0 8px 24px rgba(0,0,0,0.08);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.browser-frame:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.browser-frame__bar {
    background: #e4e4e7;
    padding: 0.55rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.browser-frame__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.browser-frame__dot:nth-child(1) { background: #f87171; }
.browser-frame__dot:nth-child(2) { background: #fbbf24; }
.browser-frame__dot:nth-child(3) { background: #34d399; }

.browser-frame__url {
    flex: 1;
    background: #fff;
    border-radius: 3px;
    padding: 0.18rem 0.65rem;
    font-size: 0.7rem;
    color: #a1a1aa;
    margin-left: 0.4rem;
    font-family: 'Inter', sans-serif;
}

.browser-frame__img {
    display: block;
    width: 100%;
}

/* ─── Coming soon strip ──────────────────────────────── */
.coming-soon-strip {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ─── Badges ─────────────────────────────────────────── */
.product-badge {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    display: inline-block;
}

.product-badge--muted {
    background: #f4f4f5;
    color: var(--muted);
    border-color: var(--border-light);
}

/* ─── Pipeline grid (in-development products) ───────── */
.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .pipeline-grid { grid-template-columns: 1fr; }
}

/* ─── About section ──────────────────────────────────── */
.about-section {
    background: var(--dark);
    border-top: 1px solid var(--border-dark);
}

.about-section .products-label { color: var(--accent); }
.about-section .section-title { color: #fafafa; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-copy {
    font-size: 1rem;
    line-height: 1.8;
    color: #71717a;
}

.about-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    overflow: hidden;
}

.about-fact {
    padding: 1.5rem;
    border-right: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.about-fact:nth-child(2n) { border-right: none; }
.about-fact:nth-child(3),
.about-fact:nth-child(4) { border-bottom: none; }

.about-fact__label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #52525b;
    font-family: 'Inter', sans-serif;
}

.about-fact__value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #e4e4e7;
}

.about-fact__value a {
    color: var(--accent);
    text-decoration: none;
}

.about-fact__value a:hover { text-decoration: underline; }

/* ─── CTA section ────────────────────────────────────── */
.cta-section {
    background: var(--dark2);
    border-top: 1px solid var(--border-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(8,145,178,0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(40px);
}

.cta-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fafafa;
}

.cta-section p {
    color: var(--muted);
}

/* ─── Buttons ────────────────────────────────────────── */
.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 0.8rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #fafafa;
    padding: 0.8rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    border: 1px solid #3f3f46;
    font-family: 'Inter', sans-serif;
}

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

.btn-outline {
    border: 1px solid var(--border-light);
    color: var(--muted);
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.btn-outline:hover {
    border-color: var(--dark);
    color: var(--dark);
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border-dark);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
    .cleargym-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .browser-frame {
        transform: none;
    }
}

@media (max-width: 600px) {
    .cleargym-card__features { grid-template-columns: 1fr; }
    .coming-soon-strip { flex-direction: column; align-items: flex-start; }
}

html { scroll-behavior: smooth; }

/* ─── Single pages (about, contact, etc.) ────────────── */
.single-hero {
    background: var(--dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 5rem 1.5rem 4rem;
}

.single-hero__inner {
    max-width: 720px;
    margin: 0 auto;
}

.single-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fafafa;
    margin: 0;
}

.single-body {
    padding: 4rem 1.5rem 6rem;
    background: #fff;
}

.single-body__inner {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3f3f46;
}

.single-body__inner h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin: 2.5rem 0 0.75rem;
}

.single-body__inner h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 2rem 0 0.5rem;
}

.single-body__inner p { margin: 0 0 1.25rem; }

.single-body__inner a {
    color: var(--accent);
    text-decoration: none;
}

.single-body__inner a:hover { text-decoration: underline; }

.single-body__inner strong { color: var(--dark); font-weight: 600; }
