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

:root {
  --bg:            #0f0e0c;
  --bg-card:       #141210;
  --bg-card-hover: #1c1916;
  --text:          #ede8df;
  --text-muted:    #7a6e5e;
  --text-sub:      #a8998a;
  --gold:          #b8964e;
  --gold-light:    #d4ae6a;
  --gold-dim:      #6b5630;
  --gold-glow:     rgba(184,150,78,.12);
  --border:        rgba(184,150,78,.13);
  --border-strong: rgba(184,150,78,.35);
  --serif:         'Cormorant Garamond', Georgia, serif;
  --sans:          'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='.04'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .02em; }
a { color: inherit; text-decoration: none; }

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

/* ── Fade-in ───────────────────────────────────────────────── */
.fi { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.fi.in { opacity: 1; transform: none; }

/* ── Utility ──────────────────────────────────────────────── */
.hidden       { display: none !important; }
.honeypot     { display: none !important; }

/* Placeholder card specifics */
.c-icon--ph   { border-style: dashed; opacity: .35; }
.c-desc--ph   { opacity: .45; }
.soon-label   { font-size: .72rem; color: var(--text-muted); opacity: .4; letter-spacing: .1em; text-transform: uppercase; }

/* Sobre section overrides */
.sobre-s-label { margin-bottom: .6rem; margin-left: 0; }
.sobre-s-title { margin-bottom: 1.75rem; }

/* ── Header ───────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(15,14,12,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.h-inner {
  display: flex; align-items: center; justify-content: space-between; height: 62px;
}
.logo {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  color: var(--gold); letter-spacing: .1em;
}
nav { display: flex; gap: 2.2rem; }
nav a {
  font-size: .72rem; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted); transition: color .2s;
}
nav a:hover { color: var(--gold); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ''; position: absolute;
  top: -200px; left: -200px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(184,150,78,.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-wm {
  position: absolute; right: -3vw; top: 50%;
  transform: translateY(-52%);
  font-family: var(--serif); font-size: 38vw; font-weight: 300;
  color: rgba(184,150,78,.025); line-height: 1;
  pointer-events: none; user-select: none;
}
.hero-body { position: relative; z-index: 1; max-width: 720px; }

.eyebrow {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.75rem;
}
.eyebrow::before { content: ''; width: 2rem; height: 1px; background: var(--gold); flex-shrink: 0; }

h1 {
  font-size: clamp(3.8rem, 7.5vw, 6.5rem);
  font-weight: 300; line-height: 1.02; margin-bottom: 1.6rem;
}
h1 em { font-style: italic; color: var(--gold-light); }

.hero-sub {
  font-size: 1rem; color: var(--text-muted); max-width: 500px;
  line-height: 1.75; margin-bottom: 2.8rem;
}

.cta {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.9rem;
  border: 1px solid var(--gold-dim); color: var(--gold);
  font-size: .73rem; letter-spacing: .14em; text-transform: uppercase;
  transition: all .25s; cursor: pointer;
}
.cta:hover { background: var(--gold-glow); border-color: var(--gold); }
.cta svg { width: 13px; height: 13px; }

/* ── Sections shared ──────────────────────────────────────── */
section { padding: 7rem 0; }

.s-label {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: .8rem;
  margin-bottom: .8rem;
}
.s-label::before { content: ''; width: 2rem; height: 1px; background: var(--gold); }

.s-title { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 300; margin-bottom: 1rem; }
.s-title em { font-style: italic; color: var(--gold-light); }

.s-desc {
  font-size: .9rem; color: var(--text-muted); max-width: 540px;
  line-height: 1.75; margin-bottom: 4rem;
}

/* ── Systems ──────────────────────────────────────────────── */
#sistemas { border-top: 1px solid var(--border); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card {
  background: var(--bg-card);
  padding: 2rem; display: flex; flex-direction: column; gap: 1.1rem;
  position: relative; overflow: hidden;
  transition: background .2s;
}
.card:hover { background: var(--bg-card-hover); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }

.c-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.c-icon svg { width: 17px; height: 17px; }

.badges { display: flex; gap: .35rem; flex-wrap: wrap; }
.badge {
  font-size: .62rem; letter-spacing: .09em; text-transform: uppercase;
  padding: .2rem .5rem; border: 1px solid;
}
.badge--sm    { font-size: .6rem; }
.b-prod  { color: #80cc80; border-color: rgba(128,204,128,.22); background: rgba(128,204,128,.04); }
.b-dev   { color: var(--gold); border-color: var(--border); background: rgba(184,150,78,.04); }
.b-beta  { color: #80afd4; border-color: rgba(128,175,212,.22); background: rgba(128,175,212,.04); }
.b-local { color: var(--text-muted); border-color: rgba(122,110,94,.2); }

.c-name {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 400;
  line-height: 1.2; color: var(--text);
}
.c-desc {
  font-size: .845rem; color: var(--text-muted); line-height: 1.7; flex: 1;
}
.c-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-size: .65rem; color: rgba(122,110,94,.75);
  background: rgba(255,255,255,.018); border: 1px solid rgba(122,110,94,.1);
  padding: .15rem .48rem;
}
.c-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.c-link {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: .45rem;
  transition: gap .2s;
}
.c-link:hover { gap: .7rem; }
.c-link svg { width: 11px; height: 11px; }

/* Card placeholder */
.card-placeholder {
  background: rgba(184,150,78,.012);
  outline: 1px dashed rgba(184,150,78,.1);
  outline-offset: -1px;
}
.card-placeholder .c-name { font-size: 1.1rem; color: var(--text-muted); }

/* ── Sobre ────────────────────────────────────────────────── */
#sobre { border-top: 1px solid var(--border); }

.sobre-grid { display: grid; grid-template-columns: 260px 1fr; gap: 6rem; align-items: start; }

.sobre-l .big-init {
  font-family: var(--serif); font-size: 9rem; font-weight: 300;
  color: rgba(184,150,78,.09); line-height: 1; margin-bottom: 1.5rem;
}
.facts { display: flex; flex-direction: column; gap: 1rem; }
.fact-label { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .15rem; }
.fact-val { font-size: .86rem; color: var(--text-muted); }

.sobre-r p { font-size: .95rem; color: var(--text-muted); line-height: 1.82; margin-bottom: 1.3rem; }
.sobre-r p strong { color: var(--text); font-weight: 500; }

.skills { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2rem; }
.chip {
  font-size: .7rem; letter-spacing: .07em; padding: .28rem .72rem;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: all .2s;
}
.chip:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ── Solicitar ────────────────────────────────────────────── */
#solicitar { border-top: 1px solid var(--border); }

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}
.form-left .form-intro { font-size: .9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 2rem; }
.form-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.form-step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  width: 26px; height: 26px; flex-shrink: 0;
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; font-size: .65rem; color: var(--gold);
  font-family: var(--serif); font-weight: 500; margin-top: .1rem;
}
.step-txt { font-size: .83rem; color: var(--text-muted); line-height: 1.6; }
.step-txt strong { color: var(--text-sub); font-weight: 500; }

.req-form { display: flex; flex-direction: column; gap: 1.25rem; }
.f-group { display: flex; flex-direction: column; gap: .4rem; }
.f-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.f-label {
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-muted);
}
.f-label .req { color: var(--gold); margin-left: .2rem; }

.f-input, .f-select, .f-textarea {
  width: 100%;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(184,150,78,.12);
  color: var(--text);
  padding: .7rem .9rem;
  font-size: .88rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}
.f-input::placeholder, .f-textarea::placeholder { color: rgba(122,110,94,.5); }
.f-input:focus, .f-select:focus, .f-textarea:focus {
  border-color: var(--gold-dim);
  background: rgba(184,150,78,.04);
}
.f-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.f-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b5630' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
  padding-right: 2.2rem; cursor: pointer;
}
.f-select option { background: #1a1816; }

.pref-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .1rem; }
.pref-chip {
  font-size: .72rem; letter-spacing: .06em; padding: .3rem .8rem;
  border: 1px solid rgba(184,150,78,.15); color: var(--text-muted);
  cursor: pointer; transition: all .18s; user-select: none;
}
.pref-chip.active { border-color: var(--gold-dim); color: var(--gold); background: rgba(184,150,78,.06); }

.f-submit {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; padding: .95rem;
  background: transparent; border: 1px solid var(--gold-dim);
  color: var(--gold); font-size: .78rem; font-family: var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: all .25s; margin-top: .5rem;
}
.f-submit:hover { background: var(--gold-glow); border-color: var(--gold); }
.f-submit svg { width: 14px; height: 14px; }
.f-submit:disabled { opacity: .5; cursor: not-allowed; }

.form-success {
  display: none; flex-direction: column; align-items: center;
  text-align: center; gap: 1rem; padding: 3rem 2rem;
  border: 1px solid rgba(184,150,78,.15);
}
.form-success.show { display: flex; }
.success-icon {
  width: 48px; height: 48px; border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.success-icon svg { width: 22px; height: 22px; }
.success-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 300; }
.success-title em { font-style: italic; color: var(--gold-light); }
.success-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.7; max-width: 340px; }

/* ── Contato ──────────────────────────────────────────────── */
#contato { border-top: 1px solid var(--border); }

.contato-inner { max-width: 600px; }
.contato-title {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem); font-family: var(--serif);
  font-weight: 300; margin-bottom: 1.5rem; line-height: 1.08;
}
.contato-title em { font-style: italic; color: var(--gold-light); }
.contato-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 2.5rem; }

.c-links { display: flex; flex-direction: column; gap: .65rem; }
.c-lnk {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border: 1px solid var(--border);
  color: var(--text-muted); font-size: .87rem;
  transition: all .22s;
}
.c-lnk:hover { border-color: var(--border-strong); color: var(--text); background: rgba(184,150,78,.03); }
.c-lnk svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.c-lnk span { flex: 1; }
.c-lnk .arr { font-size: .75rem; transition: transform .2s; }
.c-lnk:hover .arr { transform: translateX(3px); }

/* ── Footer ───────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.foot-logo { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .1em; }
.foot-copy { font-size: .72rem; color: var(--text-muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-wm { display: none; }
  .sobre-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-l .big-init { font-size: 6rem; }
  nav a:not(:first-child) { display: none; }
  .foot-inner { flex-direction: column; text-align: center; }
  .container { padding: 0 1.5rem; }
  section { padding: 5rem 0; }
  .form-wrap { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 3rem; }
  .grid { grid-template-columns: 1fr; }
  .f-row2 { grid-template-columns: 1fr; }
}
