/* =========================================================================
   Barrie Web Automation — Brand Stylesheet
   Brand rules:
     Background  #1A1A1A  (near black) — dominant
     White       #FFFFFF  — primary headings + body text
     Silver      #C0C0C0  — secondary / supporting text
     Gold        #B8860B  — ACCENT ONLY (logo, 1-2 accent words, CTAs,
                            checkmarks/small decorative, dividers/underlines)
   No gold backgrounds, no gold cards, no full gold headings, no gold body.
   ========================================================================= */

:root {
    --bg:            #1A1A1A;
    --bg-elevated:   #212121;  /* cards / panels (dark grey, NOT gold) */
    --bg-elevated-2: #262626;
    --border:        #333333;
    --border-soft:   #2c2c2c;
    --white:         #FFFFFF;
    --silver:        #C0C0C0;
    --silver-dim:    #9a9a9a;
    --gold:          #B8860B;
    --gold-soft:     rgba(184, 134, 11, 0.12);
    --gold-border:   rgba(184, 134, 11, 0.35);
    --radius:        14px;
    --radius-sm:     10px;
    --maxw:          1180px;
    --shadow:        0 18px 50px rgba(0, 0, 0, 0.45);
    --ease:          cubic-bezier(0.16, 1, 0.3, 1);
    --font:          'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

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

::selection { background: rgba(184, 134, 11, 0.3); color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ----------------------------- Layout helpers --------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }

/* Accent: gold for 1–2 words inside a white heading */
.accent { color: var(--gold); }

/* Gold divider / underline (decorative line) */
.divider {
    width: 64px; height: 3px; background: var(--gold);
    border: 0; border-radius: 2px; margin: 0 0 24px;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* Small gold eyebrow label above section headings (text gold, small accent) */
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

/* Typography scale */
h1, h2, h3, h4 { color: var(--white); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }

.lead { color: var(--silver); font-size: 1.1rem; max-width: 60ch; }
.muted { color: var(--silver-dim); }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head .divider { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--silver); font-size: 1.08rem; margin-top: 18px; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-weight: 600; font-size: 1rem; line-height: 1;
    padding: 15px 28px; border-radius: var(--radius-sm);
    cursor: pointer; border: 1px solid transparent;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
    white-space: nowrap;
}
/* Primary CTA — gold (allowed) with dark text for contrast */
.btn--gold {
    background: var(--gold); color: #1a1a1a; font-weight: 700;
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.25);
}
.btn--gold:hover { transform: translateY(-2px); background: #cf9a18; box-shadow: 0 12px 30px rgba(184, 134, 11, 0.35); }
/* Secondary — outlined, white text */
.btn--ghost { background: transparent; color: var(--white); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--gold); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }

/* ----------------------------- Navbar ----------------------------------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { color: var(--silver); font-weight: 500; font-size: 0.97rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--white); }
.nav__links a.btn--gold { color: #1a1a1a; }
.nav__links a.btn--gold:hover { color: #1a1a1a; }

.nav__toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.nav__toggle svg { width: 28px; height: 28px; }

.nav__mobile { display: none; background: rgba(20,20,20,0.97); backdrop-filter: blur(18px); border-top: 1px solid var(--border-soft); }
.nav__mobile.open { display: block; }
.nav__mobile a { display: block; padding: 14px 24px; color: var(--silver); font-weight: 500; border-bottom: 1px solid var(--border-soft); }
.nav__mobile a:hover { color: var(--white); background: var(--bg-elevated); }
.nav__mobile a.cta { color: var(--gold); font-weight: 700; }

/* ----------------------------- Hero ------------------------------------- */
.hero { position: relative; padding-top: 168px; padding-bottom: 110px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
    position: absolute; inset: 0; opacity: 0.5;
    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: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero__glow {
    position: absolute; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(184,134,11,0.10), transparent 70%);
    top: -120px; left: 50%; transform: translateX(-50%); filter: blur(20px);
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }

.badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 16px; border-radius: 999px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--silver); font-size: 0.85rem; margin-bottom: 28px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(184,134,11,0.6); animation: ping 2.2s var(--ease) infinite; }

.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.7rem); font-weight: 900; letter-spacing: -0.03em; }
.hero p.lead { margin: 26px auto 0; font-size: 1.18rem; color: var(--silver); }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* Stats */
.stats { display: flex; justify-content: center; gap: clamp(28px, 7vw, 90px); margin-top: 72px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat__num { font-size: 2.1rem; font-weight: 800; color: var(--white); }
.stat__label { font-size: 0.82rem; color: var(--silver-dim); margin-top: 4px; letter-spacing: 0.04em; }

/* ----------------------------- Cards ------------------------------------ */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 34px;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--gold-border); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--silver); }

/* Icon chip — neutral dark with gold glyph (small decorative gold allowed) */
.icon-chip {
    width: 54px; height: 54px; border-radius: 12px;
    background: var(--gold-soft); border: 1px solid var(--gold-border);
    display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.icon-chip svg { width: 26px; height: 26px; color: var(--gold); stroke: var(--gold); }

/* Feature list with gold checkmarks (allowed small decorative) */
.feat { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.feat li { display: flex; align-items: flex-start; gap: 11px; color: var(--silver); font-size: 0.95rem; }
.feat li svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ----------------------------- Pricing ---------------------------------- */
.promo-badge {
    display: inline-block;
    background: var(--gold);
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}
.pricing { max-width: 600px; margin: 0 auto; }
.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
@media (max-width: 960px) {
    .pricing-tiers { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
.price-card {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; position: relative;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-border);
    box-shadow: var(--shadow);
}
.price-card.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), var(--shadow);
}
.price-card__ribbon {
    position: absolute; top: 18px; right: -42px; transform: rotate(45deg);
    background: var(--gold); color: #1a1a1a; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.08em; padding: 6px 52px;
}
.price-card__body { padding: 32px; display: flex; flex-direction: column; height: 100%; }
.price-card__body .btn { margin-top: auto; }
@media (min-width: 961px) { .pricing-tiers .price-card__body { padding: 28px; } }
.price-row { display: flex; align-items: flex-end; gap: 22px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.price-row .label { font-size: 0.78rem; color: var(--silver-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.price-row .free { font-size: 2.8rem; font-weight: 900; color: var(--white); line-height: 1; }
.price-row .amount { font-size: 2.8rem; font-weight: 900; color: var(--white); line-height: 1; }
.price-row .amount small { font-size: 1rem; color: var(--silver-dim); font-weight: 500; }
.price-row .plus { font-size: 1.6rem; color: var(--silver-dim); align-self: center; }
.price-row .was { font-size: 0.78rem; color: var(--silver-dim); margin-top: 6px; }
.price-row .was s { color: var(--silver-dim); }

.addons { background: var(--bg-elevated-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 22px; margin: 28px 0; }
.addons h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--silver); margin-bottom: 14px; }
.addons ul { list-style: none; display: grid; gap: 9px; }
.addons li { display: flex; justify-content: space-between; gap: 14px; font-size: 0.92rem; color: var(--silver); }
.addons li .val { color: var(--gold); font-weight: 600; white-space: nowrap; }
.addons li.sep { border-top: 1px solid var(--border-soft); padding-top: 11px; margin-top: 4px; }
.price-note { text-align: center; color: var(--silver-dim); font-size: 0.85rem; margin-top: 16px; }

/* ----------------------------- What we build ---------------------------- */
.build-card { background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.build-card:hover { transform: translateY(-5px); border-color: var(--gold-border); box-shadow: var(--shadow); }
.build-card__top { padding: 30px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border-soft); background: var(--bg-elevated-2); }
.build-card__top .icon-chip { margin: 0; }
.build-card__top span { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver-dim); font-weight: 600; }
.build-card__body { padding: 28px 30px; }
.build-card__body h3 { font-size: 1.18rem; }
.build-card__body p { color: var(--silver); font-size: 0.95rem; margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.tag { font-size: 0.78rem; padding: 5px 12px; border-radius: 999px; background: var(--bg-elevated-2); border: 1px solid var(--border-soft); color: var(--silver); }
.tags__label { width: 100%; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--silver-dim); margin-bottom: 4px; }

/* ----------------------------- Contact ---------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 18px; margin-top: 30px; }
.contact-info .row { display: flex; align-items: center; gap: 16px; }
.contact-info .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info .ic svg { width: 20px; height: 20px; color: var(--gold); }
.contact-info .row span { color: var(--silver); }

.form-card { background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; color: var(--silver); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
    background: var(--bg-elevated-2); border: 1px solid var(--border);
    color: var(--white); font-family: inherit; font-size: 0.97rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--silver-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,134,11,0.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select {
    appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C0C0C0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
    padding-right: 42px;
}
.success { display: none; text-align: center; padding: 30px 0; }
.success.show { display: block; }
.success .check { width: 62px; height: 62px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-border); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.success .check svg { width: 30px; height: 30px; color: var(--gold); }

/* Loading spinner */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(26,26,26,0.35); border-top-color: #1a1a1a; border-radius: 50%; animation: spin 0.6s linear infinite; }

/* ----------------------------- Footer ----------------------------------- */
.footer { border-top: 1px solid var(--border-soft); padding: 44px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo img { height: 34px; }
.footer p { color: var(--silver-dim); font-size: 0.88rem; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 38px; height: 38px; border-radius: 9px; background: var(--bg-elevated); border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; color: var(--silver); transition: color 0.2s, border-color 0.2s; }
.footer__social a:hover { color: var(--gold); border-color: var(--gold-border); }
.footer__social svg { width: 16px; height: 16px; }

/* ----------------------------- Animations ------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(184,134,11,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(184,134,11,0); }
    100% { box-shadow: 0 0 0 0 rgba(184,134,11,0); }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 960px) {
    .grid--3 { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
    .nav__links { display: none; }
    .nav__toggle { display: inline-flex; }
    .section { padding: 72px 0; }
    .hero { padding-top: 130px; padding-bottom: 80px; }
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .field--2 { grid-template-columns: 1fr; }
    .section-head { margin-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
