/* ============================================================
   ObedientAmbition, Unipessoal LDA — site styles
   Dark, premium noir aesthetic with gold accents
   ============================================================ */

:root {
  --bg:            #0a0b0d;
  --bg-elev:       #121419;
  --bg-elev-2:     #181b22;
  --line:          #262a33;
  --text:          #e9eaf0;
  --text-dim:      #9aa1ad;
  --text-faint:    #6b727e;
  --gold:          #d8b25e;
  --gold-bright:   #f0cd7a;
  --gold-soft:     rgba(216, 178, 94, 0.12);
  --danger:        #c8553d;
  --radius:        16px;
  --radius-sm:     10px;
  --maxw:          1180px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:        0 24px 60px -20px rgba(0,0,0,0.7);
  --font-display:  "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(216,178,94,0.10), transparent 60%),
    radial-gradient(700px 600px at -10% 20%, rgba(80,90,120,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.lead { color: var(--text-dim); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1303;
  box-shadow: 0 12px 30px -12px rgba(216,178,94,0.6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(216,178,94,0.75); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,11,13,0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10,11,13,0.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  display: grid; place-items: center; color: #1a1303; font-family: var(--font-display); font-weight: 700; font-size: 19px;
  box-shadow: 0 8px 20px -8px rgba(216,178,94,0.7);
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-text b { font-size: 1.02rem; }
.brand .brand-text span { font-size: 11px; color: var(--text-faint); letter-spacing: 0.16em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-size: 0.93rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 10px 20px; font-size: 0.88rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 22px; }
.hero h1 .accent { color: var(--gold-bright); font-style: italic; }
.hero p { font-size: 1.16rem; color: var(--text-dim); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; }
.hero-stats .stat b { font-family: var(--font-display); font-size: 1.9rem; color: var(--text); display: block; }
.hero-stats .stat span { font-size: 0.82rem; color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase; }

/* Hero device card */
.device {
  position: relative;
  border-radius: 26px;
  padding: 14px;
  background: linear-gradient(160deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  transition: transform .5s var(--ease);
}
.device:hover { transform: rotate(0deg) translateY(-4px); }
.device img { border-radius: 16px; width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; }
.device .badge {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; display: flex; gap: 10px; align-items: center; font-size: 0.82rem; white-space: nowrap;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,0.8);
}
.device .badge .dot { color: var(--gold); }

/* ---------- Sections ---------- */
section { padding: 92px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; }

/* Hero venture collage */
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-collage .tile {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.hero-collage .tile:hover { transform: translateY(-4px); border-color: rgba(216,178,94,0.4); }
.hero-collage .tile span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.hero-collage .tile b { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.hero-collage .tile.gold { background: linear-gradient(160deg, rgba(216,178,94,0.14), var(--bg-elev)); border-color: rgba(216,178,94,0.35); }

/* The Chairman spotlight */
.spotlight {
  background: linear-gradient(160deg, rgba(216,178,94,0.07), var(--bg-elev));
  border: 1px solid var(--line); border-radius: 24px; padding: 44px; box-shadow: var(--shadow);
}
.spotlight h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0; }
.spotlight .lead { max-width: 560px; }
.spotlight-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.spotlight-head > div { display: flex; flex-direction: column; }
.spotlight-head .eyebrow { margin-bottom: 6px; }
.spotlight-icon { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); flex: 0 0 auto; background: #000; }
.spotlight-shots { display: flex; gap: 14px; overflow-x: auto; margin-top: 30px; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.spotlight-shots img {
  flex: 0 0 auto; width: 280px; max-width: 70vw; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line); background: #000; scroll-snap-align: start;
}
.spotlight-shots::-webkit-scrollbar { height: 8px; }
.spotlight-shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 12px; }
.feature {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: rgba(216,178,94,0.4); }
.feature .ico { font-size: 1.4rem; margin-bottom: 14px; }
.feature h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; letter-spacing: 0; }
.feature p { color: var(--text-dim); font-size: 0.93rem; }

/* Screenshot gallery */
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 22px; margin-top: 40px; scroll-snap-type: x mandatory; }
.shots img {
  flex: 0 0 auto; width: 230px; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line); scroll-snap-align: center; background: #000;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

/* About / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.about-card .row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-card .row:last-child { border-bottom: 0; }
.about-card .row span { color: var(--text-dim); }
.about-card .row b { color: var(--text); font-weight: 600; }

/* Sectors */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px;
  font-size: 0.92rem; color: var(--text-dim); background: var(--bg-elev);
  transition: all .25s var(--ease);
}
.chip:hover { color: var(--gold-bright); border-color: rgba(216,178,94,0.45); }

/* Portfolio */
.port-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.port {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
.port::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity .3s var(--ease);
}
.port:hover { transform: translateY(-5px); border-color: rgba(216,178,94,0.35); }
.port:hover::after { opacity: 1; }
.port .tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.port h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.18rem; margin: 8px 0 10px; letter-spacing: 0; }
.port p { color: var(--text-dim); font-size: 0.93rem; }
.port.featured { background: linear-gradient(160deg, rgba(216,178,94,0.10), var(--bg-elev)); border-color: rgba(216,178,94,0.35); }

/* Contact / CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line); border-radius: 24px; padding: 60px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); max-width: 520px; margin: 0 auto 30px; }
.contact-row { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 36px; color: var(--text-dim); font-size: 0.95rem; }
.contact-row a { color: var(--gold-bright); }

/* Google Play button */
.gplay {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px;
  background: #000; border: 1px solid var(--line); border-radius: 12px; transition: all .25s var(--ease);
}
.gplay:hover { border-color: var(--gold); transform: translateY(-2px); }
.gplay svg { width: 26px; height: 26px; }
.gplay .t { line-height: 1.1; }
.gplay .t small { font-size: 10px; color: var(--text-dim); display: block; letter-spacing: 0.04em; }
.gplay .t b { font-size: 1.05rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; background: var(--bg-elev); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-grid p { color: var(--text-dim); font-size: 0.92rem; max-width: 320px; margin-top: 14px; }
.foot-col h4 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 0.93rem; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--gold-bright); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 0.85rem; }
.foot-bottom .legal-links { display: flex; gap: 20px; }
.foot-bottom .legal-links a:hover { color: var(--gold-bright); }

/* ---------- Legal pages ---------- */
.legal { padding: 70px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 12px; }
.legal .updated { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 14px; }
.legal .intro { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; margin: 38px 0 12px; letter-spacing: 0; color: var(--text); }
.legal h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin: 24px 0 8px; letter-spacing: 0; }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 30px; }
.back-link:hover { color: var(--gold-bright); }

/* ---------- Reveal animation (JS-gated: content is always visible without JS) ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .device { max-width: 320px; margin: 0 auto; transform: none; }
  .spotlight { padding: 28px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Nav collapses to a menu a bit earlier so links never crowd the brand */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 18px; align-items: flex-start;
  }
  .nav-links.open .nav-cta { margin-top: 4px; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 24px; }
  .cta-band { padding: 38px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
