/* =========================================================
   TAMONE SRL — Landing page
   ========================================================= */

:root {
  --ink: #0E1116;
  --ink-2: #161B23;
  --ink-3: #232A35;
  --paper: #F6F4EF;
  --paper-2: #ECE9E1;
  --text: #1A1D23;
  --muted: #5E6470;
  --muted-light: #9AA1AD;
  --accent: #2F5BFF;
  --accent-2: #5B7EFF;
  --signal: #FF6B2C;
  --ok: #2BB673;
  --line: rgba(14, 17, 22, 0.1);
  --line-light: rgba(255, 255, 255, 0.1);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(14, 17, 22, 0.18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px var(--accent); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--light { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.header.is-scrolled {
  background: rgba(14, 17, 22, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-light);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  position: relative;
}
.logo__mark::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 10px; height: 10px; border-radius: 3px; background: var(--signal);
}
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.logo__srl { font-weight: 400; font-size: 12px; margin-left: 6px; opacity: .6; letter-spacing: .1em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  color: rgba(255,255,255,.8); text-decoration: none;
  font-weight: 500; font-size: 15px;
  position: relative; transition: color .2s;
}
.nav__link:not(.nav__link--cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 0;
  background: var(--signal); transition: width .3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
  color: #fff; padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.3);
}
.nav__link--cta:hover { background: #fff; color: var(--ink); }

.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger.is-open span:first-child { top: 19px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(47,91,255,.35), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(255,107,44,.18), transparent 60%),
              var(--ink);
  color: #fff;
  padding: 150px 0 110px;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em;
  color: rgba(255,255,255,.75);
  padding: 7px 14px; border: 1px solid var(--line-light); border-radius: 999px;
  margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(43,182,115,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(43,182,115,0); } }

.hero__title { font-size: clamp(40px, 6vw, 72px); font-weight: 700; }
.hl {
  background: linear-gradient(100deg, var(--accent-2), var(--signal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 24px; font-size: 19px; color: rgba(255,255,255,.72); max-width: 560px; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Terminal */
.terminal {
  background: rgba(22, 27, 35, .85);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-light);
  background: rgba(255,255,255,.03);
}
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: #3A414D; }
.terminal__bar span:nth-child(1) { background: #FF5F57; }
.terminal__bar span:nth-child(2) { background: #FEBC2E; }
.terminal__bar span:nth-child(3) { background: #28C840; }
.terminal__bar p { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-light); }
.terminal__body {
  margin: 0; padding: 22px 22px 26px;
  min-height: 290px;
  font-family: var(--font-mono); font-size: 14px; line-height: 1.75;
  color: #D7DCE4; white-space: pre-wrap; word-break: break-word;
}
.terminal__body .p { color: var(--signal); }
.terminal__body .c { color: var(--muted-light); }
.terminal__body .k { color: var(--accent-2); }
.terminal__body .ok { color: var(--ok); }
.cursor { display: inline-block; width: 8px; height: 1.1em; background: #D7DCE4; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__kicker {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  letter-spacing: .04em; margin-bottom: 14px;
}
.section--dark .section__kicker { color: var(--signal); }
.section__title { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; }
.section__sub { margin-top: 16px; color: var(--muted); font-size: 18px; }
.section--dark .section__sub { color: rgba(255,255,255,.65); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--signal));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(47,91,255,.08); color: var(--accent);
  margin-bottom: 22px;
  transition: background .3s, color .3s;
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--accent); color: #fff; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-light);
}
.step {
  padding: 34px 28px 10px 0;
  border-right: 1px solid var(--line-light);
  margin-right: 28px;
  position: relative;
}
.step:last-child { border-right: 0; margin-right: 0; }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%; background: var(--signal);
}
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--muted-light); }
.step h3 { font-size: 24px; margin: 12px 0 10px; }
.step p { color: rgba(255,255,255,.65); font-size: 16px; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.why__list { list-style: none; margin: 0; padding: 0; }
.why__list li {
  display: grid; gap: 4px;
  padding: 24px 0 24px 46px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.why__list li:first-child { border-top: 1px solid var(--line); }
.why__list li::before {
  content: "✓"; position: absolute; left: 0; top: 24px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 14px;
}
.why__list strong { font-family: var(--font-head); font-size: 20px; }
.why__list span { color: var(--muted); }

/* Band */
.band {
  background: linear-gradient(110deg, var(--accent) 0%, #4A3CFF 55%, var(--signal) 130%);
  color: #fff; padding: 70px 0;
}
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.band h2 { font-size: clamp(26px, 3.2vw, 38px); max-width: 640px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.contact__btn { margin-top: 32px; }
.contact__list { margin: 0; display: grid; gap: 22px; }
.contact__list div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.contact__list dt { font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 3px; }
.contact__list dd { margin: 0; font-family: var(--font-head); font-size: 19px; font-weight: 500; }
.contact__list a { text-decoration: none; background: linear-gradient(var(--signal), var(--signal)) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease); }
.contact__list a:hover { background-size: 100% 1.5px; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 70px 0 30px; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer__brand p { margin-top: 14px; }
.footer__legal { display: grid; gap: 4px; text-align: right; }
.footer__legal strong { color: #fff; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--signal); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.terminal.reveal.is-visible { transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__inner, .why, .contact { grid-template-columns: 1fr; gap: 50px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .step:nth-child(2) { border-right: 0; margin-right: 0; }
  .terminal, .terminal.reveal.is-visible { transform: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 90px 24px 30px;
    background: var(--ink);
    transform: translateY(-100%);
    transition: transform .4s var(--ease);
    z-index: -1;
  }
  .nav.is-open { transform: none; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
  .nav__link { font-size: 22px; padding: 8px 0; }
  .nav__link--cta { margin-top: 10px; padding: 10px 20px; font-size: 18px; }

  .hero { padding: 120px 0 80px; }
  .section { padding: 80px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; margin-right: 0; }
  .contact__list div { grid-template-columns: 1fr; gap: 4px; }
  .footer__legal { text-align: left; }
  .band__inner { flex-direction: column; align-items: flex-start; }
}
