/* ============================================================
   GTS — GoToSmart · v1
   Dark, teal/cyan, type-driven. Self-contained, no external deps.
   ============================================================ */

:root {
  --bg:          #0A0D11;
  --bg-soft:     #0E131A;
  --surface:     #121A23;
  --surface-2:   #16212C;
  --border:      rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:        #EAF1F6;
  --text-muted:  #9DABBA;
  --text-dim:    #6C7A89;

  --accent:      #2DD4BF;
  --accent-cyan: #22D3EE;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-line: rgba(45, 212, 191, 0.35);
  --glow:        rgba(34, 211, 238, 0.16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;

  --maxw: 1080px;
  --radius: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

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

/* Accessibility ----------------------------------------------------------- */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #06231f;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

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

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 17, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-mark.small { width: 26px; height: 26px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-size: 16px; color: var(--text); display: inline-flex; align-items: center; gap: 7px; }
.brand-text strong { font-weight: 800; letter-spacing: 0.5px; }
.brand-sep { color: var(--accent); font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent-line); background: var(--accent-soft); }

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  will-change: transform;
}
.btn .ico { width: 20px; height: 20px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent));
  color: #04231f;
  box-shadow: 0 8px 30px -10px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(34, 211, 238, 0.7); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(72px, 12vw, 150px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 140vw;
  height: 700px;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  /* subtle top grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
}
.hero-title {
  margin: 0 0 26px;
  font-size: clamp(2.3rem, 6.2vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.grad {
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent) 65%, #7dffe9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 38px;
  font-size: clamp(1.06rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections ---------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 26px; }
.section-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-lead {
  margin: 0 0 44px;
  max-width: 720px;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--text-muted);
}
.section-lead strong, .about strong, .footer-legal strong { color: var(--text); font-weight: 700; }

/* Cards (O que fazemos) --------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 18px 50px -24px rgba(34, 211, 238, 0.4);
}
.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 12px; font-size: 1.25rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-muted); font-size: 1rem; }

/* Steps (G-T-S) ----------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 26px;
  align-items: start;
  padding: 30px 30px 30px 26px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent));
  opacity: 0.85;
}
.step-letter {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.2rem);
  line-height: 1;
  background: linear-gradient(150deg, var(--accent-cyan), var(--accent) 70%, #6ff2df);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}
.step-body h3 { margin: 4px 0 10px; font-size: 1.28rem; letter-spacing: -0.01em; }
.step-name { color: var(--text); font-weight: 800; }
.step-body p { margin: 0; color: var(--text-muted); }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 10px; padding: 26px 22px; }
  .step-letter { text-align: left; }
}

/* About ------------------------------------------------------------------- */
.about { max-width: 760px; }
.about p { margin: 0 0 20px; font-size: clamp(1.02rem, 1.9vw, 1.18rem); color: var(--text-muted); }
.about p:last-child { margin-bottom: 0; }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 16px 40px -22px rgba(34, 211, 238, 0.45);
}
.contact-ico {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.contact-ico svg { width: 23px; height: 23px; }
.contact-meta { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-size: 13px; color: var(--text-dim); letter-spacing: 0.3px; }
.contact-value { font-size: 15px; color: var(--text); font-weight: 600; word-break: break-word; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg);
}
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.3px; }
.footer-legal { margin: 0; color: var(--text-dim); font-size: 14px; max-width: 640px; line-height: 1.6; }
.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-dim); font-size: 14px; }

/* Reveal animation -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .contact-card { transition: none; }
}
