@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

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

:root {
    --brand: #006064;
    --brand-dark: #003e41;
    --brand-light: #eaf2f2;
    --ink: #0F1117;
    --slate: #4A5168;
    --muted: #8C93A8;
    --border: #E4E7EC;
    --surface: #F7F8FA;
    --white: #FFFFFF;
    --radius: 2px;
    --font-primary: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

html {
    font-size: 16px;
    font-family: var(--font-primary);
    color: var(--slate);
    line-height: 1.7;
    letter-spacing: -0.006em;
    -webkit-font-smoothing: antialiased;
}
body { background: var(--white); }

/* ── Nav ── */
nav {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--brand);
    text-decoration: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-primary);
}

/* Hamburger Toggle (CSS-only) */
.nav-check { display: none; }
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 3px;
}
.nav-hamburger span,
.nav-hamburger::before,
.nav-hamburger::after {
    content: "";
    display: block;
    height: 2.5px;
    background: var(--ink);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-links a {
    color: var(--slate);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand); }
.nav-cta {
    background: var(--brand) !important;
    color: var(--white) !important;
    padding: 0.55rem 1.25rem !important;
    border-radius: var(--radius);
    font-weight: 600 !important;
    transition: background 0.2s !important;
}
.nav-cta:hover {
    background: var(--brand-dark) !important;
}

/* ── Hero (homepage) ── */
.hero {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
        linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--white);
    padding: 5rem 1.5rem 5.5rem;
    text-align: center;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.3rem 0.9rem;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.047em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-primary);
}
.hero-sub {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    letter-spacing: -0.006em;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--font-mono);
}
.hero-stat span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    opacity: 0.8;
}

/* Page Header (inner pages) */
.page-header {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
        linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--white);
    padding: 3.5rem 1.5rem;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.038em;
    font-family: var(--font-primary);
}
.page-header p { opacity: 0.9; font-size: 1rem; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-family: var(--font-primary);
}
.btn-primary {
    background: var(--white);
    color: var(--brand);
}
.btn-primary:hover {
    background: var(--surface);
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}
.btn-outline {
    border: 1px solid var(--brand);
    color: var(--brand);
    background: transparent;
}
.btn-outline:hover {
    background: var(--brand);
    color: var(--white);
}

/* ── Proof Bar (below hero) ── */
.proof-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.85rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    text-align: center;
}
.proof-bar__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.006em;
}
.proof-bar__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.proof-bar__icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.proof-bar__stars {
    color: #F59E0B;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ── Section System (homepage full-bleed) ── */
.section {
    padding: 4rem 1.5rem;
}
.section--white { background: var(--white); }
.section--bg { background: var(--surface); }
.section--brand {
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--white);
}
.section__inner {
    max-width: 1000px;
    margin: 0 auto;
}
.section__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 0.5rem;
}
.section--brand .section__label { color: rgba(255,255,255,0.7); }
.section__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.036em;
    line-height: 1.25;
    color: var(--ink);
}
.section--brand .section__title { color: var(--white); }
.section__subtitle {
    color: var(--slate);
    font-size: 15px;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
}
.section--brand .section__subtitle { color: rgba(255,255,255,0.85); }

/* ── Trust Grid ── */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.trust-grid__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.trust-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trust-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.trust-grid__item h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--ink);
    letter-spacing: -0.022em;
}
.trust-grid__item p {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.7;
    margin: 0;
    letter-spacing: -0.006em;
}

/* ── Services Grid ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}
.service-card {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
    background: var(--white);
}
.service-card:hover {
    border-color: var(--brand);
}
.service-card__icon {
    width: 44px;
    height: 44px;
    background: var(--brand-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.service-card__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.service-card h3 {
    font-size: 18px;
    margin-bottom: 0.6rem;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.022em;
}
.service-card p {
    color: var(--slate);
    margin: 0;
    line-height: 1.7;
    font-size: 15px;
    letter-spacing: -0.006em;
}

/* ── Testimonials ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.testimonial-card__stars {
    color: #F59E0B;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}
.testimonial-card blockquote {
    font-style: normal;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 15px;
    letter-spacing: -0.006em;
}
.testimonial-card cite {
    font-style: normal;
    font-weight: 600;
    color: var(--ink);
    font-size: 13px;
}

/* ── Inner page sections (services/about — card layout) ── */
main > section:not(.section) {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
main:not(:has(.section)) { padding: 2.5rem 1rem; }
main:not(:has(.section)) h2 {
    font-size: 22px;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.036em;
}
main:not(:has(.section)) p { margin-bottom: 0.75rem; color: var(--slate); line-height: 1.7; }

/* Area List */
.area-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.area-list li { padding: 0.5rem 0 0.5rem 1.5rem; position: relative; color: var(--slate); font-size: 15px; }
.area-list li::before { content: "\25CF"; position: absolute; left: 0; color: var(--brand); font-size: 0.45rem; top: 0.95rem; }

/* ── How It Works (AEO section) ── */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.25rem;
}
.how-step {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.how-step h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.5rem;
    letter-spacing: -0.006em;
}
.how-step p {
    color: var(--slate);
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
    letter-spacing: -0.006em;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
details {
    border: 1px solid var(--border);
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius);
    transition: border-color 0.2s, background 0.2s;
}
details:hover { border-color: var(--brand); }
summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    font-size: 15px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
summary::-webkit-details-marker { display: none; }
summary::before {
    content: "+";
    color: var(--brand);
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-family: var(--font-mono);
}
details[open] summary::before { content: "\2212"; }
details[open] { background: var(--brand-light); border-color: var(--brand); }
details p { margin-top: 0.85rem; padding-left: 1.75rem; color: var(--slate); font-size: 15px; }

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 2rem;
    border: none;
    border-radius: 0;
}
.cta-section h2, .cta-section p { color: var(--white); }
.cta-section a { color: var(--white); text-decoration: underline; }

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.contact-form input, .contact-form textarea {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font-primary);
    background: rgba(255,255,255,0.95);
    color: var(--ink);
    transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.7);
}
.contact-form button {
    padding: 0.85rem;
    border: none;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--brand);
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background 0.2s;
}
.contact-form button:hover {
    background: var(--surface);
}

/* ── Footer ── */
footer {
    background: #0F1117;
    color: var(--muted);
    padding: 3.5rem 1.25rem 0;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.footer-col h3 {
    color: var(--white);
    margin-bottom: 0.85rem;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.006em;
}
.footer-col p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p {
    color: var(--muted);
    font-size: 12px;
    font-family: var(--font-mono);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
        margin-top: 0.75rem;
    }
    .nav-check:checked ~ .nav-links { display: flex; }
    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-cta { text-align: center !important; margin-top: 0.5rem; }
    .trust-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hero { padding: 3.5rem 1.25rem 4rem; }
    .hero h1 { font-size: 2.25rem; letter-spacing: -0.03em; }
    .hero-sub { font-size: 0.9375rem; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .hero-stat strong { font-size: 1.5rem; }
    .page-header { padding: 2.5rem 1.25rem; }
    .page-header h1 { font-size: 1.75rem; }
    .proof-bar { gap: 1rem; padding: 0.85rem 0.75rem; }
    .proof-bar__item { font-size: 12px; }
    .section { padding: 3rem 1.25rem; }
    main > section:not(.section) { padding: 1.5rem 1.25rem; }
    .services-grid { grid-template-columns: 1fr; }
    .section__title { font-size: 20px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 300px; text-align: center; }
}
