/* ---------------------------------------------------------
   kouri.dev — base tokens
--------------------------------------------------------- */
:root {
  --bg: #0a0a0f;
  --bg-alt: #0d0d15;
  --surface: #12121c;
  --border: #22222f;
  --text: #eceef5;
  --text-dim: #9a9aad;
  --text-faint: #6c6c80;

  --accent-1: #8b7cff;
  --accent-2: #38e0d8;
  --accent-grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));

  --radius: 16px;
  --radius-sm: 10px;

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

  --ease: cubic-bezier(.16,.8,.24,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 12px;
}

/* subtle grain so flat dark areas don't look dead */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------
   buttons
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn--primary {
  background: var(--accent-grad);
  color: #08080c;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(139,124,255,.55);
}

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

/* ---------------------------------------------------------
   nav
--------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10,10,15,.7);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo--sm { font-size: 16px; }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a,
.nav__links .nav__link-btn {
  font-size: 14.5px;
  color: var(--text-dim);
  position: relative;
  transition: color .2s var(--ease);
}
.nav__links a:hover,
.nav__links .nav__link-btn:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); }

.nav__link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-faint);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-switch a:hover { color: var(--text-dim); }
.lang-switch a.is-active {
  background: var(--surface);
  color: var(--text);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  margin-left: auto;
}
.burger span {
  display: block;
  height: 2px;
  width: 16px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------
   hero
--------------------------------------------------------- */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  z-index: 0;
  animation: drift 16s ease-in-out infinite alternate;
}
.hero__glow--a { background: var(--accent-1); top: -180px; left: -120px; }
.hero__glow--b { background: var(--accent-2); top: -80px; right: -160px; animation-delay: -8s; }

@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,40px) scale(1.08); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 40%, transparent 90%);
}

.hero__inner { position: relative; z-index: 1; max-width: 760px; }

.hero__title {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 700;
}

.hero__sub {
  font-size: 17.5px;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* ---------------------------------------------------------
   sections
--------------------------------------------------------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section__head h2 { font-size: clamp(26px, 3.6vw, 36px); }
.section__sub { font-size: 16px; margin: 0 0 20px; }

/* ---------------------------------------------------------
   service cards
--------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,124,255,.4);
  background: #15151f;
}
.card--ghost {
  background: transparent;
  border-style: dashed;
}

.card__icon {
  font-size: 26px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(139,124,255,.08);
  margin-bottom: 20px;
}

.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 16px; }

.card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  display: inline-block;
  transition: gap .2s var(--ease), opacity .2s var(--ease);
}
.card__link:hover { opacity: .75; }

.card__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card__link--dim { color: var(--text-faint); }

/* ---------------------------------------------------------
   process steps
--------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-2);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; }

/* ---------------------------------------------------------
   servers
--------------------------------------------------------- */
.server-card {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.server-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,124,255,.4);
}
.server-card h3 { font-size: 20px; margin-bottom: 8px; }
.server-card p { margin: 0 0 24px; color: var(--text-dim); font-size: 14.5px; }

.server-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.server-card__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.server-card__links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   contact
--------------------------------------------------------- */
.contact { text-align: center; }
.contact__inner { max-width: 560px; }
.contact__links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   footer
--------------------------------------------------------- */
.footer { padding: 40px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------------------------------------------------------
   scroll reveal
--------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   prices modal
--------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,6,10,.75);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transform: translateY(16px) scale(.98);
  transition: transform .3s var(--ease);
}
.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.modal__close:hover { color: var(--text); border-color: var(--accent-1); }

.modal__note { font-size: 14px; margin-bottom: 24px; }

.price-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: none; }

.price-row__icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(139,124,255,.08);
}

.price-row__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.price-row__title { font-weight: 600; font-size: 15px; }
.price-row__desc { font-size: 13px; color: var(--text-faint); }

.price-row__value {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--accent-2);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .modal__panel { padding: 32px 22px; }
  .price-row__desc { display: none; }
}

/* ---------------------------------------------------------
   responsive
--------------------------------------------------------- */
@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px -16px rgba(0,0,0,.5);
    padding: 20px 24px 28px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__links a,
  .nav__links .nav__link-btn {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    text-align: left;
  }
  .nav__links a:hover,
  .nav__links .nav__link-btn:hover { color: var(--accent-2); }
  .nav__links a.is-active { color: var(--accent-2); }

  .burger { display: flex; }
}

@media (max-width: 520px) {
  .hero { padding: 110px 0 72px; }
  .section { padding: 72px 0; }
}
