/* ============================================================
   Brown Digital Solutions - Stylesheet
   ============================================================ */

:root {
  --bg: #050806;
  --bg-alt: #0a0f0a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(163, 230, 53, 0.14);
  --text: #eef3ea;
  --muted: #a7b39c;
  --muted-2: #76836b;
  --brand: #a3e635;
  --brand-2: #c9f24d;
  --accent: #84cc16;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --grad: linear-gradient(120deg, #6b8e1f 0%, #a3e635 50%, #c9f24d 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: "Sora", "Plus Jakarta Sans", sans-serif; line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background decoration ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(110px); opacity: 0.5; pointer-events: none;
}
.bg-glow--1 { width: 520px; height: 520px; background: #a3e635; top: -160px; left: -120px; }
.bg-glow--2 { width: 460px; height: 460px; background: #84cc16; top: 30%; right: -160px; opacity: 0.3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(163, 230, 53, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -8px rgba(163, 230, 53, 0.75); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-strong); transform: translateY(-2px); }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  color: var(--brand-2); background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.3); margin-bottom: 22px;
}

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { height: 58px; width: auto; display: block; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; box-shadow: 0 6px 16px -4px rgba(163,230,53,.6);
}
.brand__accent { color: var(--brand-2); }

.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; position: relative; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 0; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; min-height: 70vh; }
.hero__title { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; margin-bottom: 20px; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.logo-stage { position: relative; display: grid; place-items: center; width: 100%; }
.logo-stage__mark {
  width: clamp(220px, 60%, 340px); height: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 22px 50px rgba(163, 230, 53, 0.35));
  animation: float 6s ease-in-out infinite;
}
.logo-stage__ring {
  position: absolute; width: 360px; height: 360px; max-width: 90%; max-height: 90%; border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.22), transparent 62%);
  filter: blur(8px);
}
.logo-stage__ring::before, .logo-stage__ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(163, 230, 53, 0.18);
}
.logo-stage__ring::after { inset: 14%; border-color: rgba(163, 230, 53, 0.12); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 8px; text-align: center; }
.page-hero__inner { max-width: 720px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: 88px 0; }
.cta-band__inner {
  text-align: center; max-width: 760px; margin: 0 auto;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 28px;
  padding: 56px 40px; position: relative; overflow: hidden;
}
.cta-band__inner::before { content:""; position:absolute; width:360px; height:360px; background: var(--brand); filter: blur(120px); opacity:.18; top:-130px; left:50%; transform: translateX(-50%); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; max-width: 520px; margin-inline: auto; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.section__sub { color: var(--muted); font-size: 1.05rem; }
.section__cta { text-align: center; margin-top: 44px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .3s ease, border-color .3s ease, background .3s ease;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(163,230,53,.14), transparent 60%); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-6px); border-color: rgba(163,230,53,.4); }
.card:hover::before { opacity: 1; }
.card__icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: rgba(163,230,53,.14); color: var(--brand-2); margin-bottom: 20px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.card__list li { color: var(--muted-2); font-size: 0.9rem; padding-left: 22px; position: relative; padding-block: 3px; }
.card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.work { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: transform .3s ease, border-color .3s; }
.work:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); }
.work__media { height: 180px; background: var(--g, var(--grad)); display: grid; place-items: center; position: relative; }
.work__media::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 55%); }
.work__media span { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.25rem; color: rgba(255,255,255,.95); letter-spacing: .03em; z-index: 1; }
.work__body { padding: 22px; }
.work__body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.work__body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-size: 0.75rem; padding: 5px 11px; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--border); color: var(--muted); }

/* ---------- Coming soon ---------- */
.coming-soon {
  max-width: 600px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 56px 40px; position: relative; overflow: hidden;
}
.coming-soon::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top, rgba(163,230,53,.12), transparent 60%); }
.coming-soon > * { position: relative; }
.coming-soon h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 18px 0 12px; }
.coming-soon p { color: var(--muted); margin-bottom: 28px; }
.coming-soon__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-2); background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.3);
}
.quote--soon { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.quote--soon p { font-size: 1.15rem; font-family: "Sora", sans-serif; line-height: 1.5; margin: 0; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; position: relative; transition: transform .3s, border-color .3s; }
.step:hover { transform: translateY(-6px); border-color: rgba(132,204,22,.4); }
.step__num { font-family: "Sora", sans-serif; font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about__content p { color: var(--muted); margin-bottom: 16px; }
.about__content .about__founder { font-family: "Sora", sans-serif; font-weight: 700; color: var(--text); margin-top: 4px; }
.about__features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.feature { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.95rem; }
.feature__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.quote { border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.quote p { font-size: 1.15rem; font-family: "Sora", sans-serif; line-height: 1.5; margin-bottom: 24px; }
.quote__author { display: flex; align-items: center; gap: 14px; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; }
.quote__author small { color: var(--muted-2); display: block; }

/* ---------- CTA / Contact ---------- */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 28px; padding: 50px; position: relative; overflow: hidden; }
.cta::before { content:""; position:absolute; width:380px; height:380px; background: var(--brand); filter: blur(120px); opacity:.22; top:-120px; left:-80px; }
.cta__text { position: relative; }
.cta__text h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.cta__text p { color: var(--muted); margin-bottom: 22px; }
.cta__contacts li { margin-bottom: 10px; color: var(--muted); }
.cta__contacts a { color: var(--text); font-weight: 600; }
.cta__contacts a:hover { color: var(--brand-2); }

.form { border-radius: var(--radius); padding: 30px; position: relative; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(0,0,0,.25);
  border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 0.95rem; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(163,230,53,.18); }
.field select option { background: var(--bg-alt); }
.field textarea { resize: vertical; }
.form__note { margin-top: 12px; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form__note.ok { color: #6ee7b7; }
.form__note.err { color: #fb7185; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { margin-top: 14px; font-size: 0.8rem; color: var(--muted-2); text-align: center; line-height: 1.5; }
.form__legal a { color: var(--muted); text-decoration: underline; }
.form__legal a:hover { color: var(--brand-2); }

/* ---------- Legal pages ---------- */
.legal { padding: 32px 0 100px; }
.legal__doc { max-width: 760px; margin: 0 auto; }
.legal__meta { color: var(--muted-2); font-size: 0.9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 14px; line-height: 1.75; font-size: 0.97rem; }
.legal ul, .legal ol { padding-left: 1.4em; margin-bottom: 18px; }
.legal ul li { list-style: disc; margin-bottom: 8px; }
.legal ol li { margin-bottom: 8px; }
.legal a { color: var(--brand-2); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg-alt); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; margin-bottom: 36px; }
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 320px; font-size: 0.95rem; }
.footer__contact a { color: var(--text); font-weight: 600; }
.footer__contact a:hover { color: var(--brand-2); }
.footer__brand .brand__logo { height: 40px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__cols h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); font-size: 0.9rem; padding: 5px 0; transition: color .2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
.footer__verse { text-align: center; padding: 14px 24px 26px; color: var(--muted-2); font-size: 0.72rem; letter-spacing: 0.06em; opacity: 0.65; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .hero__visual { min-height: 320px; order: -1; }
  .about, .cta { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(7,8,15,.96); backdrop-filter: blur(14px);
    padding: 10px 24px 24px; border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform .35s ease; z-index: 40;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav__links a { display: block; padding: 16px 0; font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .section { padding: 72px 0; }
  .cta { padding: 30px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
