/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
    --bg:           #080d10;
    --bg-soft:      #0e1820;
    --bg-panel:     rgba(255, 255, 255, 0.04);
    --bg-panel-2:   rgba(255, 255, 255, 0.07);
    --accent:       #6ee7c7;
    --accent-dim:   rgba(110, 231, 199, 0.12);
    --accent-glow:  rgba(110, 231, 199, 0.22);
    --text:         #e4eeea;
    --muted:        #7a948d;
    --line:         rgba(255, 255, 255, 0.08);
    --line-strong:  rgba(255, 255, 255, 0.14);
    --shadow:       0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-sm:    0 4px 16px rgba(0, 0, 0, 0.35);
    --radius:       16px;
    --radius-sm:    10px;
    --font:         'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w:        1200px;
    --nav-h:        70px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }

/* ── Buttons ───────────────────────────────────────────────── */
button { font-family: var(--font); cursor: pointer; border: none; }

.btn-primary {
    background: var(--accent);
    color: #040d09;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: opacity 140ms, transform 120ms, box-shadow 140ms;
    box-shadow: 0 4px 20px rgba(110, 231, 199, 0.3);
    white-space: nowrap;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(110, 231, 199, 0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    transition: border-color 140ms, background 140ms;
    white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-dim); }

.btn-outline {
    background: transparent;
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    transition: border-color 140ms, background 140ms, color 140ms;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; text-align: center; display: block; }

.link-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font);
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }

/* ── Navigation ────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background 220ms, border-color 220ms, box-shadow 220ms;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(8, 13, 16, 0.92);
    border-bottom-color: var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.site-nav {
    max-width: var(--max-w);
    margin: 0 auto;
    height: var(--nav-h);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand img { height: 38px; width: auto; border-radius: 8px; }

.nav-links {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color 140ms, background 140ms;
    text-decoration: none;
}
.nav-links a:hover { color: var(--text); background: var(--bg-panel); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: 1rem; }

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    margin-left: auto;
    padding: 6px;
    cursor: pointer;
}
.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 200ms, opacity 200ms;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    padding: calc(var(--nav-h) + 5rem) 2rem 5rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(110, 231, 199, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(110, 231, 199, 0.04) 0%, transparent 60%),
        var(--bg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.eyebrow-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-dim);
    border: 1px solid rgba(110, 231, 199, 0.3);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

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

.hero-sub {
    color: var(--muted);
    font-size: 1.1rem;
    margin-top: 1.25rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-top: 2.25rem;
    flex-wrap: wrap;
}

.hero-note {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 1rem;
}

/* ── Hero Visual (mock kanban) ─────────────────────────────── */
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 231, 199, 0.18) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.hk-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    background: rgba(14, 24, 32, 0.85);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow), 0 0 60px rgba(110, 231, 199, 0.08);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
}

.hk-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.4rem 0.7rem;
}

.hk-count {
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.hk-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.6rem 0.65rem;
    margin-bottom: 0.5rem;
    transition: border-color 200ms;
}

.hk-card:last-child { margin-bottom: 0; }
.hk-card-active { border-color: rgba(110, 231, 199, 0.35); }
.hk-done { opacity: 0.55; }

.hk-strip {
    height: 3px;
    border-radius: 3px 3px 0 0;
    margin: -0.6rem -0.65rem 0.5rem;
    opacity: 0.85;
}
.s-teal   { background: #6ee7c7; }
.s-blue   { background: #9fbfff; }
.s-purple { background: #c4a8ff; }

.hk-label-banner {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(0,0,0,0.72);
    margin-bottom: 0.35rem;
}

.hk-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.hk-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.hk-badge {
    font-size: 0.58rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.hk-badge.high   { background: rgba(255,107,107,0.18); color: #ff9f9f; }
.hk-badge.normal { background: rgba(110,231,199,0.14); color: var(--accent); }
.hk-badge.low    { background: rgba(159,191,255,0.14); color: #9fbfff; }


.hk-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.55rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.hk-due {
    font-size: 0.6rem;
    color: var(--muted);
}

.done-text { color: var(--accent); }

.hk-progress {
    height: 2px;
    background: var(--line);
    border-radius: 2px;
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
    overflow: hidden;
}
.hk-prog-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.7;
}

/* Timer row */
.hk-timer-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.3rem;
}
.hk-timer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff9f9f;
    flex-shrink: 0;
    animation: hk-pulse 1.4s ease-in-out infinite;
}
@keyframes hk-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}
.hk-timer {
    font-size: 0.6rem;
    font-weight: 700;
    color: #ff9f9f;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

/* Card footer: icons + meta in one row */
.hk-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    margin-top: 0.4rem;
}
.hk-meta-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* Icon pills (subtasks, comments, attachments) */
.hk-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.hk-icon-pill {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 4px;
    white-space: nowrap;
}
.hk-done-pill {
    color: var(--accent);
    background: var(--accent-dim);
    border-color: rgba(110,231,199,0.2);
}

/* Stacked avatars */
.hk-avatars {
    display: flex;
    align-items: center;
}
.hk-av2 {
    margin-left: -6px;
    border: 1px solid rgba(14,24,32,0.9);
}

/* ── Stats Strip ────────────────────────────────────────────── */
.stats-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem 2rem;
}

.stats-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0 3rem;
    text-align: center;
}

.stat-item strong {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--line-strong);
    flex-shrink: 0;
}

/* ── Sections shared ────────────────────────────────────────── */
.section { padding: 6rem 2rem; }

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}

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

.section-sub {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0.9rem auto 0;
    line-height: 1.7;
}

/* ── Features ───────────────────────────────────────────────── */
.features-section { background: var(--bg-soft); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
    text-align: left;
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color 200ms, background 200ms, transform 200ms;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 500ms, transform 500ms, border-color 200ms, background 200ms;
}

.feature-card:hover {
    border-color: rgba(110, 231, 199, 0.3);
    background: var(--bg-panel-2);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.85;
}

.feature-card h3 { margin-bottom: 0.6rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* ── How it works ───────────────────────────────────────────── */
.how-section { background: var(--bg); }

.steps-grid {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 3.5rem;
    justify-content: center;
}

.step-card {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 2rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 500ms, transform 500ms;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-dim);
    line-height: 1;
    margin-bottom: 1rem;
    -webkit-text-stroke: 2px var(--accent);
    color: transparent;
}

.step-card h3 { margin-bottom: 0.6rem; }
.step-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

.step-connector {
    flex-shrink: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-dim), rgba(110, 231, 199, 0.05));
    margin-top: 3.5rem;
    border-radius: 2px;
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-section { background: var(--bg-soft); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
    align-items: start;
    text-align: left;
}

.pricing-card {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: border-color 200ms;
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 500ms, transform 500ms, border-color 200ms;
}

.pricing-card-featured {
    border-color: rgba(110, 231, 199, 0.35);
    background: linear-gradient(160deg, rgba(110, 231, 199, 0.07), var(--bg-panel));
}

.pricing-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #040d09;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.pricing-tier {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
}

.price-currency {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--muted);
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.price-custom {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.01em;
}

.pricing-desc {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--muted);
    padding-left: 1.35rem;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82rem;
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
    padding: 6rem 2rem;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(110, 231, 199, 0.09) 0%, transparent 70%),
                var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner p { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-note { color: var(--muted); font-size: 0.82rem; margin-top: 1rem; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-section { background: var(--bg-soft); }

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
}

.contact-inner .section-sub { margin: 0.9rem 0 0; text-align: left; }
.contact-inner .section-label { text-align: left; }
.contact-inner h2 { text-align: left; }

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-icon {
    font-size: 1.1rem;
    color: var(--accent);
    width: 24px;
    text-align: center;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line);
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 280px;
    line-height: 1.65;
}

.footer-logo { height: 32px; width: auto; border-radius: 6px; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 140ms;
}
.footer-col a:hover { color: var(--accent); }

.footer-about {
    max-width: var(--max-w);
    margin: 0 auto 2.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
}

.footer-about h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 780px;
    margin-bottom: 0.6rem;
}

.footer-about p:last-child { margin-bottom: 0; }

.footer-about-tagline {
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.84rem !important;
    margin-top: 0.8rem !important;
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 1.75rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.82rem;
}

/* ── Modals ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.modal {
    background: linear-gradient(160deg, #0f1d26, #0a1218);
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 560px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(110, 231, 199, 0.06);
}

.modal-sm { max-width: 420px; }

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-panel-2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 1.2rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 140ms, color 140ms;
    line-height: 1;
}
.modal-close:hover { background: var(--bg-panel-2); color: var(--text); border-color: var(--line-strong); }

.modal-logo { margin-bottom: 1.75rem; }
.modal-logo img { height: 34px; width: auto; border-radius: 7px; }

.modal-title { font-size: 1.6rem; margin-bottom: 0.4rem; }
.modal-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.75rem; }

/* ── Forms ──────────────────────────────────────────────────── */
.auth-form, .contact-form { display: flex; flex-direction: column; gap: 1rem; }

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

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label, .contact-form label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-link {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.label-link:hover { text-decoration: underline; }

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

.form-group input,
.form-group select,
.form-group textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.92rem;
    padding: 0.7rem 0.9rem;
    outline: none;
    width: 100%;
    transition: border-color 140ms, background 140ms;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    background: rgba(110, 231, 199, 0.04);
}

.form-group select option { background: #0f1d26; color: var(--text); }
.form-group textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.85rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-label .link { color: var(--accent); }
.checkbox-label .link:hover { text-decoration: underline; }

.auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    padding-top: 0.25rem;
}

/* ── Form Success ───────────────────────────────────────────── */
.form-success {
    text-align: center;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    margin-bottom: 0.5rem;
}

.form-success h3 { font-size: 1.3rem; }
.form-success p { color: var(--muted); font-size: 0.92rem; max-width: 340px; line-height: 1.65; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-sub { text-align: center; }
    .hero-ctas { justify-content: center; }
    .hk-board { max-width: 560px; margin: 0 auto; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }

    .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-mobile-toggle { display: flex; }

    .site-nav.nav-open {
        flex-wrap: wrap;
        height: auto;
        padding-bottom: 1rem;
        background: rgba(8, 13, 16, 0.98);
    }
    .site-nav.nav-open .nav-links,
    .site-nav.nav-open .nav-actions {
        display: flex;
        width: 100%;
    }
    .site-nav.nav-open .nav-links { flex-direction: column; padding: 0.5rem 0; }
    .site-nav.nav-open .nav-actions { flex-direction: column; gap: 0.5rem; padding-bottom: 0.5rem; }
    .site-header { height: auto; }

    .hk-board { grid-template-columns: 1fr; }
    .hk-col-done { display: none; }

    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; align-items: center; }
    .step-connector { width: 2px; height: 40px; margin-top: 0; background: linear-gradient(180deg, var(--accent-dim), rgba(110,231,199,0.05)); }

    .stats-inner { flex-wrap: wrap; gap: 1.5rem; }
    .stat-divider { display: none; }
    .stat-item { width: calc(50% - 0.75rem); padding: 0; }

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

    .modal { padding: 1.75rem 1.25rem; border-radius: 20px; }
}

@media (max-width: 480px) {
    .hero { padding-top: calc(var(--nav-h) + 3rem); padding-left: 1.25rem; padding-right: 1.25rem; }
    .section { padding: 4rem 1.25rem; }
    .footer-links { grid-template-columns: 1fr; }
}
