:root {
  --bg: #020204;
  --bg-soft: #080812;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --text: #f6f2ff;
  --muted: #bbb5d2;
  --muted-2: #8f89a7;
  --line: rgba(255, 255, 255, 0.14);
  --purple: #7467f0;
  --blue: #4aa7d8;
  --green: #13c98c;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(116, 103, 240, 0.26), transparent 28%),
    radial-gradient(circle at 82% 15%, rgba(19, 201, 140, 0.18), transparent 28%),
    radial-gradient(circle at 40% 58%, rgba(74, 167, 216, 0.14), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 2, 4, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 14px 34px rgba(0,0,0,0.34);
  overflow: hidden;
}

.brand img { width: 48px; height: 48px; object-fit: cover; }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav a:hover {
  background: var(--surface);
  color: var(--white);
}

.nav .nav-button {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(116,103,240,0.32), rgba(74,167,216,0.22), rgba(19,201,140,0.22));
}

.section-xl { padding: 88px 0 62px; }
.section { padding: 64px 0; }
.section-tight { padding: 42px 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.hero-copy {
  position: relative;
  isolation: isolate;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: -0.065em;
  line-height: 0.93;
  max-width: 920px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.8vw, 54px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #050505;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--blue) 48%, var(--green));
  box-shadow: 0 18px 46px rgba(19, 201, 140, 0.14), 0 16px 42px rgba(116, 103, 240, 0.15);
}

.button.secondary {
  color: var(--text);
  background: rgba(255,255,255,0.065);
  box-shadow: none;
}

.button.ghost {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.hero-logo-card {
  position: relative;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.018)),
    #000;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-logo-card::before,
.hero-logo-card::after {
  content: "";
  position: absolute;
  inset: auto auto -80px -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(116,103,240,0.45), transparent 62%);
  pointer-events: none;
}

.hero-logo-card::after {
  inset: -70px -70px auto auto;
  background: radial-gradient(circle, rgba(19,201,140,0.35), transparent 62%);
}

.hero-logo-card img {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }

.card,
.project-panel,
.notice-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.026));
  box-shadow: 0 20px 55px rgba(0,0,0,0.23);
}

.card {
  padding: 24px;
  min-height: 236px;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: -56px;
  right: -56px;
  width: 142px;
  height: 142px;
  border-radius: 999px;
  opacity: 0.33;
  background: var(--purple);
  filter: blur(6px);
}

.card.accent-blue::before { background: var(--blue); }
.card.accent-green::before { background: var(--green); }
.card.accent-mix::before { background: linear-gradient(135deg, var(--purple), var(--blue), var(--green)); }

.card-index {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.card p,
.project-panel p,
.notice-panel p { color: var(--muted); }

.structure-list {
  display: grid;
  gap: 12px;
}

.structure-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.045);
}

.structure-row strong {
  display: block;
  color: var(--white);
  letter-spacing: -0.01em;
}

.structure-row span {
  color: var(--muted);
}

.project-panel {
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
}

.project-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(116,103,240,0.13), transparent 34%),
    radial-gradient(circle at 94% 12%, rgba(19,201,140,0.2), transparent 30%);
  pointer-events: none;
}

.project-panel > * { position: relative; }

.project-grid {
  display: grid;
  grid-template-columns: 1fr 0.68fr;
  gap: 30px;
  align-items: center;
}

.project-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(19,201,140,0.32);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-meta {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.project-meta div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 9px;
  background: linear-gradient(135deg, var(--purple), var(--blue), var(--green));
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.055);
}

.contact-strip p { color: var(--muted); margin-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted-2);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner a:hover { color: var(--white); }

.legal {
  max-width: 850px;
  padding: 70px 0;
}

.legal h1 { font-size: clamp(40px, 6vw, 62px); }
.legal h2 { font-size: 26px; margin-top: 34px; }
.legal p, .legal li { color: var(--muted); }
.legal a { text-decoration: underline; text-underline-offset: 4px; }

/* EWA landing page */
.ewa-page {
  background:
    radial-gradient(circle at 8% 10%, rgba(74,167,216,0.18), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(19,201,140,0.18), transparent 30%),
    var(--bg);
}

.ewa-hero {
  padding: 82px 0 52px;
}

.ewa-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 750;
}

.ewa-mark span:first-child {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74,167,216,0.34), rgba(19,201,140,0.24));
  border: 1px solid var(--line);
  color: var(--white);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  flex: 0 0 10px;
  background: var(--green);
}

.steps {
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.052);
}

.step::before {
  content: "0" counter(step);
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--green);
  font-weight: 850;
  letter-spacing: 0.1em;
}

.notice-panel {
  padding: 22px;
  background: rgba(116,103,240,0.08);
}

@media (max-width: 940px) {
  .hero-grid,
  .project-grid,
  .cards.three,
  .cards.four,
  .cards.two {
    grid-template-columns: 1fr;
  }

  .hero-logo-card { max-width: 520px; }
  .structure-row { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .header-inner { align-items: flex-start; padding: 12px 0; }
  .brand { width: 48px; height: 48px; border-radius: 15px; }
  .brand img { width: 42px; height: 42px; }
  .nav { font-size: 13px; gap: 2px; }
  .nav a { padding: 8px 9px; }
  .section-xl { padding: 56px 0 42px; }
  .section { padding: 46px 0; }
  .actions { gap: 10px; }
  .button { width: 100%; }
  .card { min-height: unset; }
}
