/* ============ Referenzia — site styles ============ */
:root {
  /* Brand palette: teal #14A38B accent, slate #2A3138 neutral, greys #9AA3AD / #ECEEF1.
     Dark theme (skill-backed for a pro/creative tool): elevated dark surfaces,
     hairline borders, teal accent + glow. */
  --bg:        #0D0F11;
  --bg-2:      #15191D;
  --bg-3:      #1D2227;
  --field:     #12161A;
  --border:    #2A3138;
  --border-2:  #39424B;
  --text:      #ECEEF1;
  --dim:       #9AA3AD;
  --faint:     #5C656E;
  --accent:    #14A38B;
  --accent-2:  #2FD0B0;
  --accent-soft:#0E6E5E;
  --error:     #E5573F;
  --ok:        #2FD0B0;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --r: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* atmospheric grain */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ type helpers ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.display {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: 0;
}
h1.display { font-size: clamp(2.6rem, 6.2vw, 5.1rem); }
.display.sm { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.06; }
.display em { font-style: italic; color: var(--accent-2); font-weight: 300; }
.lede { color: var(--dim); font-size: 1.12rem; max-width: 46ch; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 500; font-size: .98rem;
  padding: .82rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-lg, .btn.lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn.full { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--accent); color: #0b0d18;
  box-shadow: 0 8px 28px -12px rgba(20,163,139,.7);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(20,163,139,.85); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:hover { transform: none; background: var(--accent); }
.btn-ghost[disabled]:hover { background: transparent; border-color: var(--border-2); color: var(--text); }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.1rem clamp(1.2rem, 4vw, 2.4rem);
  backdrop-filter: blur(12px);
}
.nav::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,15,18,.85), rgba(14,15,18,.4));
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-size: 1.3rem; letter-spacing: -.01em;
}
.brand-logo { height: 25px; width: auto; display: block; }
.footer-logo { height: 30px; opacity: .95; }
.nav-links { display: flex; gap: 1.7rem; margin-left: auto; }
.nav-links a { color: var(--dim); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 0; }

/* language switcher */
.lang-switch { display: flex; gap: 1px; margin-left: 1.3rem; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.lang-btn { font-family: var(--mono); font-size: .66rem; letter-spacing: .03em; color: var(--dim); background: transparent; border: none; border-radius: 999px; padding: .28rem .42rem; cursor: pointer; transition: color .2s, background .2s; }
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: #07130F; background: var(--accent); }

/* ============ hero ============ */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 4vw, 2.4rem) clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-glow {
  position: absolute; top: -10%; left: 20%; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(20,163,139,.22), transparent 70%);
  filter: blur(40px); z-index: 0; pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: .9rem; margin: 2rem 0 1.1rem; flex-wrap: wrap; }
.hero-foot { font-family: var(--mono); font-size: .78rem; color: var(--faint); display: flex; align-items: center; gap: .5rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero-tip { font-size: .86rem; color: var(--accent-2); margin: .55rem 0 0; display: flex; align-items: center; gap: .5rem; }
.tip-glyph { color: var(--accent); font-size: .9rem; }

/* hero stage — the reference-grid motif */
.hero-stage {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, var(--bg-2), #121319);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 1.1rem;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.03);
}
.mock-bar {
  display: flex; align-items: center; gap: .5rem;
  background: var(--field); border: 1px solid var(--border-2);
  border-radius: 10px; padding: .7rem .9rem; margin-bottom: .7rem;
}
.mock-caret { width: 2px; height: 1.1em; background: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-query { font-size: .92rem; color: var(--text); }
.mock-chips { display: flex; gap: .4rem; margin-bottom: .9rem; flex-wrap: wrap; }
.mock-chips span {
  font-family: var(--mono); font-size: .66rem; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid var(--accent-soft); border-radius: 6px; padding: .25rem .5rem;
}
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 46px; gap: 8px;
}
.cell {
  border-radius: 8px; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
  opacity: 0; transform: scale(.92) translateY(8px);
  animation: pop .5s var(--ease) forwards;
}
.cell::after {
  content: attr(data-src);
  position: absolute; left: 6px; bottom: 5px;
  font-family: var(--mono); font-size: .54rem; letter-spacing: .03em;
  color: rgba(255,255,255,.7); text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.cell::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45));
}
@keyframes pop { to { opacity: 1; transform: none; } }

/* ============ sections ============ */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.2rem, 4vw, 2.4rem);
  position: relative; z-index: 2;
}
.section-head { margin-bottom: 3rem; max-width: 40ch; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step {
  background: linear-gradient(180deg, var(--bg-2), #131419);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.8rem 1.6rem 2rem; position: relative;
}
.step-no { font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 1.4rem 0 .6rem; }
.step p { color: var(--dim); font-size: .98rem; margin: 0; }

/* features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.feature {
  padding: 1.8rem; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--bg-2);
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.feature:hover { border-color: var(--accent-soft); transform: translateY(-3px); background: var(--bg-3); }
.feature h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 0 0 .6rem; }
.feature p { color: var(--dim); margin: 0; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.plan {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.7rem 1.4rem; position: relative;
}
.plan.featured {
  border-color: var(--accent-soft);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg-2)), var(--bg-2));
  box-shadow: 0 30px 60px -36px rgba(20,163,139,.5);
}
.ribbon {
  position: absolute; top: -1px; right: 1.2rem; transform: translateY(-50%);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #0b0d18; padding: .3rem .6rem; border-radius: 999px;
}
.plan header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .3rem; }
.plan h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin: 0; }
.price { font-family: var(--mono); font-size: 1rem; color: var(--accent-2); margin: 0; }
.plan-tag { color: var(--faint); font-size: .82rem; margin: 0 0 1.2rem; }
.plan ul { list-style: none; margin: 0 0 1.4rem; padding: 0; flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.plan li { font-size: .9rem; color: var(--dim); padding-left: 1.2rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.plan li.muted { color: var(--faint); } .plan li.muted::before { background: var(--faint); }
.plan li strong { color: var(--text); font-weight: 600; }

/* ============ register ============ */
.register-section { padding-top: clamp(2rem,4vw,4rem); }
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.register-intro .lede { margin-bottom: 1.6rem; }
.reg-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.reg-points li { color: var(--dim); padding-left: 1.6rem; position: relative; }
.reg-points li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono);
}
.register-card {
  background: linear-gradient(180deg, var(--bg-2), #131419);
  border: 1px solid var(--border); border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 40px 80px -44px rgba(0,0,0,.8);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: .5rem; }
.field input {
  width: 100%; background: var(--field); color: var(--text);
  border: 1px solid var(--border-2); border-radius: 10px;
  padding: .85rem 1rem; font-family: var(--body); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,163,139,.18); }
.field input.invalid { border-color: var(--error); }
.form-msg { min-height: 1.2rem; font-size: .9rem; margin: .2rem 0 1rem; }
.form-msg.error { color: var(--error); }
.form-msg.ok { color: var(--ok); }
.form-fine { color: var(--faint); font-size: .8rem; margin: 1rem 0 0; text-align: center; }
.register-card.done .field, .register-card.done #submitBtn, .register-card.done .form-fine { display: none; }
.success {
  text-align: center; padding: 1rem 0;
}
.success .check {
  width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok);
  display: grid; place-items: center; font-size: 1.6rem;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ok) 40%, transparent);
}
.success h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 0 0 .6rem; }
.success p { color: var(--dim); margin: 0; }

/* ============ download ============ */
.download-card {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--bg-2), #14161d 60%, color-mix(in srgb, var(--accent) 8%, #14161d));
  border: 1px solid var(--border); border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 3rem);
}
.download-card .lede { margin: .8rem 0 0; }
.download-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.download-meta { font-family: var(--mono); font-size: .74rem; color: var(--faint); }

/* ============ footer ============ */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 3rem clamp(1.2rem, 4vw, 2.4rem) 3.5rem;
  border-top: 1px solid var(--border); position: relative; z-index: 2;
}
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.2rem; margin-bottom: 1rem; }
.footer-note { color: var(--dim); max-width: 60ch; margin: 0 0 1.2rem; }
.footer-fine { color: var(--faint); font-size: .82rem; font-family: var(--mono); margin: 0; }

/* ============ reveal ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .register-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lang-switch { margin-left: auto; }
  .nav-cta { margin-left: .6rem; }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .cell { opacity: 1; transform: none; }
}
