/* ========================================================================
   Oda Software — styles.css
   Premium SaaS landing. Dark base, blue tech accents, subtle glass.
   ======================================================================== */

:root {
  /* palette */
  --bg:        #0A0A0A;
  --bg-soft:   #0e0f13;
  --surface:   #121319;
  --primary:   #2563EB;
  --primary-2: #60A5FA;
  --white:     #FFFFFF;

  /* derived */
  --text:      #EDEFF5;
  --text-dim:  #9aa0b3;
  --text-faint:#646a7d;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --glass:     rgba(255,255,255,0.035);
  --glass-2:   rgba(255,255,255,0.06);
  --grad:      linear-gradient(135deg, var(--primary-2), var(--primary));
  --glow:      0 0 0 1px rgba(96,165,250,0.18), 0 20px 60px -20px rgba(37,99,235,0.55);

  /* type */
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* spacing rhythm */
  --maxw: 1180px;
  --gutter: 28px;
  --sect: clamp(80px, 12vw, 150px);
  --radius: 18px;
  --radius-lg: 26px;
}

* { 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(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* selection */
::selection { background: rgba(37,99,235,0.4); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #23252e; border-radius: 9px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2f3240; }

/* ---------- type scale ---------- */
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--primary-2)); }

.gradient-text {
  background: linear-gradient(115deg, #fff 30%, var(--primary-2) 70%, var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  --pad: 15px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad);
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  border-radius: 13px; border: 1px solid transparent; cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .3s, border-color .3s;
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(37,99,235,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -12px rgba(37,99,235,0.85), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  background: var(--glass); color: var(--text); border-color: var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(96,165,250,0.5); background: var(--glass-2); }

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 38px; height: 38px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.brand:hover .logo { transform: rotate(45deg); }
.brand .name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand .name span { color: var(--text-dim); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--text-dim); transition: color .25s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width .3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle span + span { margin-top: 5px; }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; padding: 180px 0 var(--sect); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-plane {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(96,165,250,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 0%, transparent 75%);
  transition: transform .4s ease-out;
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  transition: transform .5s ease-out;
}
.glow-1 { width: 620px; height: 620px; top: -180px; left: 50%; margin-left: -310px;
  background: radial-gradient(circle, rgba(37,99,235,0.55), transparent 65%); }
.glow-2 { width: 380px; height: 380px; top: 120px; right: -60px;
  background: radial-gradient(circle, rgba(96,165,250,0.32), transparent 65%); }
.glow-3 { width: 340px; height: 340px; top: 220px; left: -80px;
  background: radial-gradient(circle, rgba(37,99,235,0.28), transparent 65%); }

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 880px; margin: 0 auto; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-2); border-radius: 100px; background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; color: var(--text-dim); margin-bottom: 30px;
}
.hero .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }
.hero h1 { font-size: clamp(38px, 6.2vw, 74px); margin-bottom: 26px; }
.hero .sub { font-size: clamp(17px, 2vw, 20px); color: var(--text-dim); max-width: 660px; margin: 0 auto 40px; line-height: 1.65; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-logos { margin-top: 84px; }
.hero-logos p { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.hero-logos .row { display: flex; gap: 46px; justify-content: center; align-items: center; flex-wrap: wrap; opacity: .6; }
.hero-logos .row span { font-size: 17px; font-weight: 600; color: var(--text-dim); letter-spacing: -0.01em; }

/* ===================================================================
   SECTION SHELL
   =================================================================== */
section { position: relative; }
.section-pad { padding: var(--sect) 0; }
.section-head { max-width: 660px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); margin: 18px 0 18px; }
.section-head p { font-size: 17px; color: var(--text-dim); line-height: 1.7; }

/* ===================================================================
   CARD GRID (O que construímos)
   =================================================================== */
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.build-card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  overflow: hidden; transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .4s, background .4s;
  will-change: transform;
}
.build-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,0%), rgba(96,165,250,0.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.build-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx,50%) var(--my,0%), rgba(37,99,235,0.16), transparent 55%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.build-card:hover { transform: translateY(-7px); background: var(--glass-2); border-color: transparent; }
.build-card:hover::before, .build-card:hover::after { opacity: 1; }
.build-card .ic { width: 50px; height: 50px; margin-bottom: 22px; border-radius: 13px;
  display: grid; place-items: center; background: rgba(37,99,235,0.13); border: 1px solid rgba(96,165,250,0.22); color: var(--primary-2); }
.build-card .ic svg { width: 24px; height: 24px; }
.build-card h3 { font-size: 20px; margin-bottom: 9px; }
.build-card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }
.build-card .idx { position: absolute; top: 26px; right: 30px; font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* ===================================================================
   SERVICES
   =================================================================== */
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.serv-card { background: var(--bg-soft); padding: 38px 32px; transition: background .4s; position: relative; }
.serv-card:hover { background: var(--surface); }
.serv-card .ic { width: 46px; height: 46px; margin-bottom: 22px; color: var(--primary-2); display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,0.04); transition: transform .4s, background .4s; }
.serv-card:hover .ic { transform: translateY(-4px) scale(1.05); background: rgba(37,99,235,0.16); }
.serv-card .ic svg { width: 23px; height: 23px; }
.serv-card h3 { font-size: 19px; margin-bottom: 10px; }
.serv-card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.65; }
.serv-card .arrow { margin-top: 18px; font-size: 14px; color: var(--primary-2); display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(-6px); transition: .35s; }
.serv-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ===================================================================
   EXPERIENCE + METRICS
   =================================================================== */
.exp { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.exp-copy h2 { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 22px; }
.exp-copy p { font-size: 17px; color: var(--text-dim); line-height: 1.75; margin-bottom: 18px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.metric {
  padding: 30px 28px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.metric::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--grad); opacity: .6; }
.metric .num { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; }
.metric .num .suffix { color: var(--primary-2); }
.metric .label { font-size: 14px; color: var(--text-dim); margin-top: 12px; }

/* ===================================================================
   DIFFERENTIALS
   =================================================================== */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.diff-card { padding: 30px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); transition: transform .4s, border-color .4s; }
.diff-card:hover { transform: translateY(-5px); border-color: rgba(96,165,250,0.32); }
.diff-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(37,99,235,0.7); }
.diff-card .ic svg { width: 22px; height: 22px; }
.diff-card h3 { font-size: 18px; margin-bottom: 9px; }
.diff-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ===================================================================
   PROCESS TIMELINE
   =================================================================== */
.timeline { position: relative; margin-top: 30px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(96,165,250,0.1)); }
.t-item { position: relative; padding: 0 0 42px 78px; }
.t-item:last-child { padding-bottom: 0; }
.t-item .node { position: absolute; left: 16px; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--primary); display: grid; place-items: center; transition: .4s; z-index: 1; }
.t-item .node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); transition: .4s; }
.t-item.in .node { border-color: var(--primary-2); box-shadow: 0 0 0 6px rgba(37,99,235,0.16); }
.t-item.in .node::after { background: var(--primary-2); transform: scale(1.25); }
.t-item .step { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-2); margin-bottom: 7px; }
.t-item h3 { font-size: 21px; margin-bottom: 8px; }
.t-item p { font-size: 15px; color: var(--text-dim); line-height: 1.65; max-width: 520px; }

/* ===================================================================
   CTA
   =================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-box {
  position: relative; border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 86px) clamp(28px,6vw,72px);
  text-align: center; overflow: hidden;
  background: linear-gradient(135deg, #0f1830, #0a0a0a 70%);
  border: 1px solid rgba(96,165,250,0.2);
}
.cta-box .cta-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px);
  background: radial-gradient(circle, rgba(37,99,235,0.5), transparent 65%); top: -180px; left: 50%; margin-left: -260px; opacity: .7; }
.cta-box .grid-mini { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(96,165,250,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(96,165,250,0.06) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 70%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 18px; }
.cta-box p { font-size: 18px; color: var(--text-dim); max-width: 540px; margin: 0 auto 36px; line-height: 1.65; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { border-top: 1px solid var(--line); padding: 70px 0 36px; margin-top: var(--sect); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer .brand { margin-bottom: 18px; }
.footer .blurb { font-size: 14.5px; color: var(--text-dim); line-height: 1.7; max-width: 300px; }
.footer .contact { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.footer .contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-dim); transition: color .25s; }
.footer .contact a:hover { color: var(--text); }
.footer .contact a svg { width: 17px; height: 17px; color: var(--primary-2); }
.footer-col h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--text-dim); padding: 7px 0; transition: color .25s, transform .25s; }
.footer-col a:hover { color: var(--text); transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: 13.5px; color: var(--text-faint); }
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-dim); transition: .3s; }
.footer-bottom .socials a:hover { color: #fff; border-color: rgba(96,165,250,0.5); transform: translateY(-3px); }
.footer-bottom .socials svg { width: 18px; height: 18px; }

/* ===================================================================
   SCROLL REVEAL
   =================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* failsafe: if CSS transitions don't advance (throttled/embedded contexts),
   JS adds this class so content is always visible */
html.anim-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 940px) {
  .build-grid, .serv-grid, .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .exp { grid-template-columns: 1fr; gap: 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: rgba(10,10,10,0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    padding: 24px var(--gutter) 30px; gap: 8px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { padding: 12px 0; font-size: 17px; }
  .hero { padding-top: 140px; }
}
@media (max-width: 560px) {
  .build-grid, .serv-grid, .diff-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  :root { --gutter: 20px; }
}
