/* The No Good Company one-pager.
   Design system carried over from the SlideRepo site so the parent brand and
   the product read as the same house. Accent lives in one place: swap --accent
   (and the --gradient stops) to reskin the page. */

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

:root {
    /* Brand package: navy #171D2D, blue #2F7FD3, muted blue-gray #7183A5, white.
       Surfaces are the brand navy taken darker so the logo's own navy reads as a
       raised card rather than the page itself. */
    --navy: #171D2D;
    --bg-primary: #0B0F1A;
    --bg-secondary: #101626;
    --bg-card: rgba(23, 29, 45, 0.6);
    --bg-card-solid: #171D2D;
    --bg-card-hover: #1E2740;
    --text-primary: #F2F5FA;
    --text-secondary: #9AAAC6;
    --text-muted: #7183A5;
    --accent: #2F7FD3;
    --accent-hover: #5AA0E4;
    --accent-glow: rgba(47, 127, 211, 0.14);
    --accent-glow-strong: rgba(47, 127, 211, 0.28);
    --gradient: linear-gradient(135deg, #1B4E8C, #2F7FD3, #5AA0E4);
    --border: rgba(113, 131, 165, 0.12);
    --border-light: rgba(113, 131, 165, 0.22);
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
    /* fixed navbar must not cover anchor targets */
    scroll-padding-top: 96px;
}

/* author display rules otherwise beat the UA's [hidden] { display: none } */
[hidden] {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(11, 15, 26, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* ─── Brand lockup ───
   Artwork comes straight from the brand package (reversed/outlined variants, with
   the navy backplate removed so it sits on the page background). The navbar uses
   the symbol + wordmark only; the two-line descriptor is unreadable at 44px, so
   the footer carries the full lockup. Brand guideline: keep clear space around the
   mark equal to the width of the central blue square, which is what the padding
   and gap values below are protecting. */
.nav-logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.footer-logo-img {
    height: 62px;
    width: auto;
    display: block;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 40px var(--accent-glow-strong), 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.btn-sm { padding: 8px 18px; font-size: 0.84rem; }
.btn-lg { padding: 14px 30px; font-size: 0.95rem; }

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
    color: #fff;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ─── Hero ─── */
.hero {
    padding: 160px 0 100px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(47, 127, 211, 0.09) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(47, 127, 211, 0.24);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-hover);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero h1 {
    /* Fluid so the two headline lines never wrap between the 960px breakpoint
       and the 1140px container cap, where the text column is at its tightest. */
    font-size: clamp(2.6rem, 4.4vw, 3.3rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-trust span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    padding-left: 14px;
}

.hero-trust span::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34d399;
    font-weight: 700;
    font-size: 0.72rem;
}

/* ─── Hero visual: concentric rings, no image dependency ─── */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-orb {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(47, 127, 211, 0.2);
}

.orb-ring-1 {
    inset: 0;
    background: radial-gradient(circle, rgba(47, 127, 211, 0.07), transparent 65%);
    animation: spin 26s linear infinite;
    border-style: dashed;
}

.orb-ring-2 {
    inset: 46px;
    border-color: rgba(47, 127, 211, 0.32);
    animation: spin 18s linear infinite reverse;
    border-style: dashed;
}

.orb-ring-3 {
    inset: 92px;
    border-color: rgba(90, 160, 228, 0.4);
    box-shadow: inset 0 0 40px var(--accent-glow);
}

.orb-core {
    position: relative;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F2F5FA;
    box-shadow: 0 0 70px var(--accent-glow-strong), 0 20px 60px rgba(0, 0, 0, 0.55);
}

.orb-symbol {
    width: 104px;
    height: 104px;
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .orb-ring-1,
    .orb-ring-2 { animation: none; }
    html { scroll-behavior: auto; }
}

/* ─── Section header ─── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.08rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Value props ─── */
.value-props {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.value-prop {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.value-prop:hover {
    border-color: rgba(47, 127, 211, 0.24);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2), 0 0 32px var(--accent-glow);
}

.value-prop-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(47, 127, 211, 0.18);
    border-radius: 14px;
    margin: 0 auto 18px;
    color: var(--accent-hover);
}

.value-prop h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.value-prop p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ─── What we do ─── */
.features {
    padding: 120px 0;
    position: relative;
    background: var(--bg-secondary);
}

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

.feature-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 127, 211, 0.35), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-card:hover {
    border-color: rgba(47, 127, 211, 0.24);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px var(--accent-glow);
}

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

.feature-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(47, 127, 211, 0.18);
    border-radius: 14px;
    margin-bottom: 22px;
    color: var(--accent-hover);
}

.feature-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

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

/* ─── Approach ─── */
.how-it-works {
    padding: 120px 0;
}

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

.step {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.step:hover {
    border-color: rgba(47, 127, 211, 0.24);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--accent-glow);
    border: 1px solid rgba(47, 127, 211, 0.24);
    border-radius: 50%;
    font-weight: 800;
    color: var(--accent-hover);
    font-size: 1.05rem;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ─── Products ─── */
.products {
    padding: 110px 0;
    background: var(--bg-secondary);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(47, 127, 211, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 40px 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: linear-gradient(180deg, rgba(47, 127, 211, 0.07), var(--bg-card-solid));
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: rgba(47, 127, 211, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px var(--accent-glow);
}

.product-card-muted {
    background: var(--bg-card);
    border-style: dashed;
}

.product-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.product-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.product-tag {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}

.product-tag-soon {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.28);
    color: #fbbf24;
}

.product-card p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.7;
    margin-bottom: 26px;
    flex: 1;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: var(--accent-hover);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap 0.2s ease;
}

.product-link:hover {
    gap: 13px;
}

/* ─── CTA ─── */
.cta-section {
    padding: 120px 0;
}

.cta-card {
    text-align: center;
    padding: 80px 48px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(47, 127, 211, 0.14), transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    position: relative;
}

.cta-card p {
    color: var(--text-secondary);
    margin: 0 auto 32px;
    font-size: 1.05rem;
    max-width: 520px;
    line-height: 1.7;
    position: relative;
}

.cta-card .btn {
    position: relative;
}

/* ─── Footer ─── */
.footer {
    padding: 72px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

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

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

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero h1 { font-size: 2.6rem; }
    .hero-visual { order: -1; }

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

@media (max-width: 768px) {
    .container { padding: 0 24px; }

    /* Nav */
    .nav-links { display: none; }
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px 24px;
        gap: 4px;
    }
    .nav-links.mobile-open li { display: flex; }
    .nav-links.mobile-open a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 46px;
        font-size: 1rem;
    }
    .nav-links.mobile-open a.btn { justify-content: center; margin-top: 10px; }
    .mobile-menu-btn { display: flex; }
    .nav-logo-img { height: 34px; }
    .footer-logo-img { height: 52px; }

    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Decorative glows must not exceed the viewport */
    .hero::before { width: 100%; height: 420px; }
    .products::before { width: 100%; height: 300px; }
    .cta-card::before { width: 100%; }

    /* Hero */
    .hero { padding: 96px 0 56px; }
    .hero .container { gap: 36px; }
    .hero-badge { margin-bottom: 20px; font-size: 0.72rem; }
    .hero h1 { font-size: 1.95rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 26px; }
    .hero-actions { margin-bottom: 28px; }
    .hero-trust { flex-direction: column; align-items: flex-start; gap: 9px; }
    .hero-orb { width: 240px; height: 240px; }
    .orb-ring-2 { inset: 32px; }
    .orb-ring-3 { inset: 64px; }
    .orb-core { width: 118px; height: 118px; }
    .orb-symbol { width: 80px; height: 80px; }

    /* Section rhythm */
    .value-props { padding: 56px 0; }
    .features,
    .how-it-works,
    .products,
    .cta-section { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 1.75rem; }
    .section-header p { font-size: 0.98rem; }

    .value-props-grid { grid-template-columns: 1fr; gap: 16px; }
    .value-prop { padding: 32px 24px; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 28px 24px; }
    .steps { grid-template-columns: 1fr; gap: 16px; }
    .step { padding: 32px 24px; }
    .product-card { padding: 32px 24px; }
    .product-card h3 { font-size: 1.25rem; }

    /* CTA */
    .cta-card { padding: 48px 24px; border-radius: var(--radius); }
    .cta-card h2 { font-size: 1.65rem; }
    .cta-card p { font-size: 0.95rem; margin-bottom: 26px; }
    /* the email address is the button label, so keep it inside the card */
    .cta-card .btn-lg { font-size: 0.85rem; padding: 13px 20px; }

    /* Footer */
    .footer { padding: 48px 0 24px; }
    .footer-content { flex-direction: column; gap: 36px; margin-bottom: 36px; }
    .footer-links { flex-wrap: wrap; gap: 28px 40px; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }

    .hero { padding: 88px 0 48px; }
    .hero h1 { font-size: 1.75rem; }
    .hero-actions .btn { width: 100%; }
    .hero-orb { width: 200px; height: 200px; }
    .orb-ring-3 { inset: 56px; }
    .orb-core { width: 100px; height: 100px; }
    .orb-symbol { width: 68px; height: 68px; }

    .section-header h2 { font-size: 1.55rem; }
    .value-props { padding: 48px 0; }
    .features,
    .how-it-works,
    .products,
    .cta-section { padding: 56px 0; }

    .value-prop,
    .feature-card,
    .step,
    .product-card { padding: 26px 20px; }

    .cta-card { padding: 40px 20px; }
    .cta-card h2 { font-size: 1.45rem; }
    .cta-card .btn-lg { font-size: 0.78rem; padding: 13px 16px; }

    .footer-links { gap: 24px 32px; }
}
