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

:root {
    --bg: #09090b;
    --surface: #111114;
    --surface-raised: #17171b;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;
    --text-dark: #18181b;
    --accent: #10b981;
    --accent-bright: #34d399;
    --accent-dim: rgba(16, 185, 129, 0.1);
    --accent-glow: rgba(16, 185, 129, 0.18);
    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.55);
    --shadow-accent: 0 6px 28px rgba(16, 185, 129, 0.18);
    --container: 1200px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 70% 45% at 15% -5%, rgba(16, 185, 129, 0.07), transparent),
        radial-gradient(circle, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

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

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    line-height: 1.15;
}

/* ─── Layout ─────────────────────────────────────────── */

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

/* ─── Header ─────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    background: rgba(9, 9, 11, 0.82);
    border-bottom: 1px solid var(--border);
}

.nav-shell {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.brand:hover .brand-mark {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.4);
}

.brand-copy {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.07em;
    color: var(--text);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.nav-links a {
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--text);
    background: var(--surface-raised);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-widget {
    flex-shrink: 0;
}

.auth-widget input {
    display: none;
}

.auth-widget form {
    display: flex;
}

/* ─── Buttons ─────────────────────────────────────────── */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    letter-spacing: -0.01em;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: var(--accent-bright);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.28);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: var(--surface-raised);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
}

.btn-google {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.7);
    color: #102015;
    box-shadow: 0 14px 32px rgba(255, 255, 255, 0.08);
}

.btn-google:hover {
    background: #ffffff;
    color: #102015;
}

.btn-block {
    width: 100%;
}

/* ─── Page transitions ────────────────────────────────── */

.page-shell {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

body.is-ready .page-shell {
    opacity: 1;
    transform: translateY(0);
}

body.is-leaving .page-shell {
    opacity: 0;
    transform: translateY(10px);
}

/* ─── Scroll reveal ──────────────────────────────────── */

.will-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

/* ─── Hero ───────────────────────────────────────────── */

.hero {
    padding: 96px 0 72px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 70% 40%, rgba(16, 185, 129, 0.04), transparent);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    position: relative;
}

.hero-grid-single {
    grid-template-columns: 1fr;
}

.hero-copy {
    padding: 44px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.3s var(--ease);
}

.hero-copy:hover {
    border-color: var(--border-strong);
}

.hero-copy h1 {
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.028em;
    font-weight: 800;
    margin: 12px 0 18px;
}

.hero-text {
    color: var(--text-muted);
    line-height: 1.72;
    font-size: 1rem;
}

.hero-text strong {
    color: var(--text);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* ─── Hero panel / Metric cards ─────────────────────── */

.hero-panel {
    display: grid;
    gap: 12px;
    align-content: stretch;
}

.hero-panel .metric-card {
    display: flex;
    flex-direction: column;
}

.metric-card {
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.metric-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-card strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 5px 0 6px;
}

.metric-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.62;
}

/* ─── Eyebrow / label ───────────────────────────────── */

.eyebrow,
.metric-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow-dark {
    color: var(--accent);
    opacity: 0.75;
}

/* ─── Sections ──────────────────────────────────────── */

.section {
    padding: 88px 0;
}

.section-dark {
    background: rgba(255, 255, 255, 0.012);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-panel {
    background: var(--surface);
}

.section-light {
    background: #f8fafc;
    color: var(--text-dark);
}

.section-light h2,
.section-light h3,
.section-light p,
.section-light a,
.section-light strong {
    color: inherit;
}

.section-light .eyebrow-dark {
    color: var(--accent);
    opacity: 1;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 44px;
}

.section-heading h2 {
    margin: 10px 0 12px;
}

.section-heading p {
    color: var(--text-muted);
    line-height: 1.72;
    font-size: 1rem;
}

.section-light .section-heading p {
    color: #52525b;
}

/* ─── Service / detail / download cards ─────────────── */

.service-card,
.detail-card,
.download-card {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover,
.detail-card:hover,
.download-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-card h3,
.detail-card h3,
.download-card h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 9px;
    color: var(--text);
}

.service-card p,
.detail-card p,
.download-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.68;
}

.download-card {
    display: flex;
    flex-direction: column;
}

.download-card .bullet-list {
    margin-bottom: 22px;
}

.download-card .btn {
    margin-top: auto;
}

/* ─── Card grids ────────────────────────────────────── */

.card-grid,
.download-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* ─── Feature stack ─────────────────────────────────── */

.feature-stack {
    display: grid;
    gap: 12px;
    align-content: start;
}

.feature-card {
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

.feature-card span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
}

.feature-card h3 {
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: -0.012em;
    margin-bottom: 6px;
    color: var(--text);
}

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

/* ─── Software feature ──────────────────────────────── */

.software-feature,
.about-grid,
.policy-grid,
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.software-copy p {
    color: var(--text-muted);
    line-height: 1.72;
    font-size: 0.98rem;
}

.software-copy p + p {
    margin-top: 12px;
}

.inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
}

/* ─── Shot showcase ─────────────────────────────────── */

.shot-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 52px;
    align-items: center;
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}

.shot-showcase:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shot-showcase:first-child {
    padding-top: 0;
}

.shot-showcase-img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--surface);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.shot-showcase-img:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.shot-showcase-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s var(--ease);
}

.shot-showcase-img:hover img {
    transform: scale(1.025);
}

.shot-showcase-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shot-showcase-body h3 {
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    line-height: 1.18;
    letter-spacing: -0.018em;
    font-weight: 700;
}

.shot-showcase-body p {
    color: var(--text-muted);
    line-height: 1.72;
    font-size: 0.98rem;
}

.shot-showcase--reverse .shot-showcase-img {
    order: 2;
}

.shot-showcase--reverse .shot-showcase-body {
    order: 1;
}

/* ─── Bullet list ───────────────────────────────────── */

.hero-points,
.bullet-list {
    margin-top: 14px;
    display: grid;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

.hero-points li,
.bullet-list li {
    list-style: none;
    position: relative;
    padding-left: 15px;
}

.hero-points li::before,
.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.65;
}

/* ─── About ─────────────────────────────────────────── */

.about-copy p {
    color: var(--text-dark);
    line-height: 1.72;
    font-size: 0.97rem;
}

.section-light .about-copy p {
    color: #3f3f46;
}

.about-copy p + p {
    margin-top: 12px;
}

/* ─── Footer ────────────────────────────────────────── */

.site-footer {
    padding: 52px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.site-footer h3 {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--text);
}

.site-footer p,
.site-footer a {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
}

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

.footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ─── Responsive ────────────────────────────────────── */

@media (max-width: 980px) {
    .hero-grid,
    .software-feature,
    .about-grid,
    .policy-grid,
    .footer-grid,
    .download-grid,
    .card-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 64px;
    }

    .section {
        padding: 72px 0;
    }
}

@media (max-width: 860px) {
    .shot-showcase {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .shot-showcase--reverse .shot-showcase-img,
    .shot-showcase--reverse .shot-showcase-body {
        order: unset;
    }

    .shot-showcase-img {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .hero-copy {
        padding: 28px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .nav-shell {
        gap: 8px;
        flex-wrap: wrap;
    }

    .brand {
        flex: 1 1 auto;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 0.84rem;
    }

    .nav-shell .btn {
        padding: 0 12px;
        font-size: 0.84rem;
        min-height: 34px;
    }

    .header-actions {
        margin-left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
