/* =========================================================
   su:do Software — styles.css
   Dark "terminal" theme with gold CI accents
   ========================================================= */

:root {
  /* Palette */
  --bg:        #0b0d10;
  --bg-2:      #0f1216;
  --surface:   #14181e;
  --surface-2: #191e26;
  --border:    #262d38;
  --border-2:  #333c49;

  --text:      #e8eaed;
  --muted:     #9aa2ad;
  --muted-2:   #6b7482;

  /* Gold CI */
  --gold:      #e3b23c;
  --gold-2:    #f2c94c;
  --gold-deep: #b8871f;
  --gold-soft: rgba(227, 178, 60, 0.12);

  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1140px;

  --shadow:    0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

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

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

.text-gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1204;
  box-shadow: 0 8px 24px -8px rgba(227, 178, 60, .5);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(227, 178, 60, .65); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(11, 13, 16, 0.92);
  border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 34px; width: auto; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-size: .95rem; color: var(--muted); font-weight: 500;
  white-space: nowrap;
  position: relative; transition: color .2s ease;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }

.nav__cta { margin-left: 4px; }

/* Language switcher */
.lang {
  display: inline-flex; gap: 2px;
  padding: 3px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface);
}
.lang--block { margin-top: 14px; align-self: flex-start; }
.lang__btn {
  font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: .32rem .62rem; border-radius: 999px; transition: color .2s ease, background .2s ease;
}
.lang__btn:hover:not(.is-active) { color: var(--text); }
.lang__btn.is-active { background: var(--gold); color: #1a1204; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 24px 20px;
  background: rgba(11, 13, 16, 0.98);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 4px; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav a.btn { margin-top: 12px; border-bottom: 0; color: #1a1204; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -20%; right: -10%; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(227, 178, 60, 0.18), transparent 60%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}

.kicker {
  display: inline-block;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  padding: .3rem .7rem; margin-bottom: 1.1rem;
  border: 1px solid var(--gold-soft); border-radius: 999px; background: var(--gold-soft);
}

.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.08; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 1.3rem;
}
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 1.8rem; }
.hero__lead strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2rem; }

.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 24px; }
.hero__badges li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ---------- Terminal ---------- */
.terminal {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terminal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.terminal__dot { width: 12px; height: 12px; border-radius: 50%; background: #39414d; }
.terminal__dot:nth-child(1) { background: #e0605e; }
.terminal__dot:nth-child(2) { background: #e0b23c; }
.terminal__dot:nth-child(3) { background: #4caf7d; }
.terminal__title { margin-left: 8px; font-family: var(--mono); font-size: .8rem; color: var(--muted-2); }
.terminal__body { padding: 20px; font-family: var(--mono); font-size: .9rem; line-height: 1.9; overflow-x: auto; }
.terminal__body code { color: var(--text); }
.c-prompt { color: var(--gold); }
.c-cmd { color: var(--gold-2); font-weight: 700; }
.c-ok { color: #4caf7d; }
.c-muted { color: var(--muted-2); }
.c-cursor { color: var(--gold); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.terminal--mini .terminal__body { font-size: .85rem; line-height: 2; }

/* ---------- Trust bar ---------- */
.trust { padding: 28px 0 44px; border-bottom: 1px solid var(--border); }
.trust__label {
  text-align: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 24px;
}
.trust__logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 20px 24px;
}
.trust__chip {
  display: flex; align-items: center; justify-content: center;
  width: 176px; height: 84px; padding: 18px 24px;
  background: #fff; border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .5);
  opacity: .9; transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}
.trust__chip:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .6); }
.trust__chip img { max-height: 100%; max-width: 100%; width: auto; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .8rem; }
.section__sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); color: var(--gold);
  font-family: var(--mono); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Features ---------- */
.features { gap: 30px 40px; }
.feature { display: flex; gap: 18px; }
.feature__num {
  font-family: var(--mono); font-weight: 700; font-size: 1rem;
  color: var(--gold); border: 1px solid var(--gold-soft); background: var(--gold-soft);
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 56px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.stat { padding: 32px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: .5rem; }
.stat__label { color: var(--muted); font-size: .92rem; }

/* ---------- Referenzen ---------- */
.ref {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ref:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.ref__tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft); padding: .25rem .6rem; border-radius: 6px; margin-bottom: 14px;
}
.ref h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.ref p { color: var(--muted); font-size: .95rem; flex-grow: 1; }
.ref__link { margin-top: 16px; font-weight: 600; color: var(--gold); font-size: .92rem; }
.ref__link--muted { color: var(--muted-2); }
a.ref__link:hover { color: var(--gold-2); }

.ref--cta {
  background: linear-gradient(160deg, var(--gold-soft), var(--surface));
  border-color: var(--gold-deep);
  justify-content: center; align-items: flex-start;
}
.ref--cta .btn { margin-top: 18px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step__num {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1204;
  font-weight: 800; font-family: var(--mono); margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }
.about__text .btn { margin-top: 12px; }
.about__text .section__title { text-align: left; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 96px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--border); }
.cta__glow {
  position: absolute; inset: 0; margin: auto; width: 620px; height: 320px;
  background: radial-gradient(ellipse, rgba(227, 178, 60, 0.16), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; max-width: 720px; }
.cta__title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.cta__sub { color: var(--muted); font-size: 1.12rem; margin-bottom: 2rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--muted); font-size: .92rem; max-width: 300px; }
.footer__col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: .95rem; padding: 5px 0; transition: color .2s ease; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--muted-2); font-size: .88rem;
}
.footer__prompt { font-family: var(--mono); }

/* ---------- Legal pages ---------- */
.legal { padding: 130px 0 80px; }
.legal__inner { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; margin-bottom: 1.5rem; letter-spacing: -.02em; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.legal p, .legal li { color: var(--muted); margin-bottom: .8rem; }
.legal ul { padding-left: 1.3rem; }
.legal a { color: var(--gold); }
.legal .back { display: inline-block; margin-bottom: 2rem; font-family: var(--mono); font-size: .9rem; color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__terminal { order: -1; max-width: 460px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Collapse the header nav to the hamburger before it gets cramped */
@media (max-width: 860px) {
  .nav, .nav__cta, .nav__lang { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .trust__chip { width: 140px; height: 72px; padding: 14px 18px; }
}

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