@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700,800,900&display=swap');

/* ─── Design tokens ────────────────────────────────────── */
:root {
  --ink:  #07080f;
  --s1:   #0b0d1c;
  --s2:   #0f1124;
  --s3:   #14172e;

  --v:    #6d5dfc;
  --v2:   #8f80ff;
  --v-g:  rgba(109,93,252,.22);
  --v-d:  rgba(109,93,252,.1);

  --c:    #4cc9f0;
  --c-d:  rgba(76,201,240,.1);

  --w:    #f0f0fd;
  --w2:   #8d96bc;
  --w3:   #454b6a;

  --ln:   rgba(255,255,255,.065);
  --ln2:  rgba(255,255,255,.11);

  --ff: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ─── Reset ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box }
html { scroll-behavior: smooth }

body {
  font-family: var(--ff);
  background: var(--ink);
  color: var(--w);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Dot-grid texture */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

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

/* ─── Header ───────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,8,15,.84);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--ln);
}

.hdr {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 1.5rem;
}

/* Logo */
.logo {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -.025em;
  display: flex; align-items: center; gap: .55rem;
}
.logo::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--v);
  box-shadow: 0 0 12px var(--v-g), 0 0 24px rgba(109,93,252,.15);
}
.logo em { color: var(--v2); font-style: normal }

/* Lang switcher */
.lang { position: relative; user-select: none }

.lang-btn {
  display: flex; align-items: center; gap: .35rem;
  background: transparent;
  border: 1px solid var(--ln2); color: var(--w2);
  padding: .38rem .9rem; border-radius: 6px;
  cursor: pointer; font-size: .8rem; font-weight: 500;
  font-family: var(--ff);
  transition: color .18s, border-color .18s, background .18s;
}
.lang-btn:hover { color: var(--w); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04) }

.lang-menu {
  display: none;
  position: absolute; right: 0; top: 100%;
  background: var(--s2); border: 1px solid var(--ln2);
  border-radius: 13px; padding: .5rem;
  min-width: 186px; column-count: 2; column-gap: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,.65), 0 1px 0 rgba(255,255,255,.04) inset;
  z-index: 200;
  margin-top: 6px;
}
/* invisible hover bridge fills the gap so cursor doesn't drop hover */
.lang-menu::before {
  content: '';
  position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.lang:hover .lang-menu,
.lang:focus-within .lang-menu { display: block }

.lang-menu a {
  display: block; break-inside: avoid;
  padding: .42rem .7rem;
  color: var(--w2); font-size: .8rem; font-weight: 500;
  border-radius: 8px; transition: background .14s, color .14s;
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--s3); color: var(--w) }
.lang-menu a.cur { color: var(--v2); background: var(--v-d) }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.5rem 5rem;
  position: relative; z-index: 1; overflow: hidden;
}

/* Violet glow blob */
.hero::before {
  content: '';
  position: absolute;
  width: 900px; height: 600px;
  top: -140px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 38%,
    rgba(109,93,252,.3) 0%,
    rgba(76,201,240,.07) 52%,
    transparent 74%);
  pointer-events: none;
}

/* Bottom fade to next section */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
}

.hero-wrap { max-width: 740px; position: relative; z-index: 1 }

/* Eyebrow badge — redesigned from generic pill */
.badge {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--v2);
  margin-bottom: 2rem;
  background: none; border: none; padding: 0;
}
.badge::before, .badge::after {
  content: '';
  display: inline-block; height: 1px; width: 24px;
  background: linear-gradient(to right, transparent, var(--v));
}
.badge::after { background: linear-gradient(to left, transparent, var(--v)) }

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.048em;
  margin-bottom: 1.5rem;
}

.hl {
  background: linear-gradient(118deg, var(--v2) 0%, var(--c) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero paragraph — no class in HTML, select via parent */
.hero-wrap > p {
  font-size: 1.05rem; color: var(--w2);
  line-height: 1.78; max-width: 520px;
  margin: 0 auto 2.75rem; font-weight: 400;
}
.hero-wrap > p strong { color: var(--w); font-weight: 600 }

/* CTAs */
.btns {
  display: flex; align-items: center; justify-content: center;
  gap: .875rem; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .825rem 1.875rem; border-radius: 10px;
  font-family: var(--ff); font-weight: 600; font-size: .95rem;
  white-space: nowrap; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}

.btn-p {
  background: var(--v); color: #fff;
  box-shadow: 0 0 0 1px rgba(109,93,252,.45),
              0 4px 18px rgba(109,93,252,.38),
              0 1px 0 rgba(255,255,255,.14) inset;
}
.btn-p:hover {
  background: var(--v2); transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(143,128,255,.5),
              0 8px 30px rgba(109,93,252,.52);
}

.btn-s {
  background: rgba(255,255,255,.04); color: var(--w);
  border: 1px solid var(--ln2);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}
.btn-s:hover {
  border-color: rgba(109,93,252,.45);
  background: var(--v-d); color: var(--v2);
  transform: translateY(-2px);
}

/* ─── Section shell ─────────────────────────────────────── */
section { position: relative; z-index: 1 }

.container {
  max-width: 1120px; margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

/* Section label (replaces old .s-label pill) */
.s-label {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--v2); margin-bottom: .9rem;
}
.s-label::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--v); box-shadow: 0 0 8px var(--v-g);
}

.s-title {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800; letter-spacing: -.035em;
  line-height: 1.1; margin-bottom: .85rem;
}

.s-desc {
  font-size: 1rem; color: var(--w2);
  line-height: 1.8; font-weight: 400;
}

/* ─── Feature cards ─────────────────────────────────────── */
#about .container { padding-bottom: 6rem }

#about .s-desc { max-width: 560px; margin-bottom: 3.5rem }

/* Bento-style tile grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ln);
  border: 1px solid var(--ln);
  border-radius: 20px;
  overflow: hidden;
}

.card {
  background: var(--s1);
  padding: 2rem 1.875rem;
  position: relative;
  transition: background .22s;
}
.card:hover { background: var(--s2) }

/* Accent hairline appears on hover */
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent 10%, var(--v) 50%, transparent 90%);
  opacity: 0; transition: opacity .28s;
}
.card:hover::before { opacity: 1 }

.c-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--v-d);
  border: 1px solid rgba(109,93,252,.2);
  font-size: 1.1rem; margin-bottom: 1.1rem;
}

.card h3 {
  font-size: .975rem; font-weight: 700;
  letter-spacing: -.01em; margin-bottom: .45rem;
}

.card p { font-size: .875rem; color: var(--w2); line-height: 1.72 }

/* ─── VPS section ───────────────────────────────────────── */
.sec-vps {
  background: var(--s1);
  border-top: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
}

.sec-vps .container { padding: 5.5rem 1.5rem }

.vps-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
@media (max-width: 800px) { .vps-grid { grid-template-columns: 1fr; gap: 3rem } }

/* VPS cyan label */
.vps-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c); margin-bottom: .9rem;
  background: none; border: none; padding: 0;
}
.vps-tag::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 8px var(--c-d);
}

.vps-text {
  font-size: 1rem; color: var(--w2); line-height: 1.8; margin-bottom: 1.5rem;
}

.alink {
  color: var(--c); font-weight: 600;
  border-bottom: 1px solid rgba(76,201,240,.3);
  transition: border-color .18s, color .18s;
}
.alink:hover { border-color: var(--c); color: #7dd9f5 }

.specs { display: flex; flex-direction: column; gap: .5rem }

.spec {
  display: flex; align-items: center; gap: .875rem;
  padding: .85rem 1.1rem;
  background: var(--s2); border: 1px solid var(--ln);
  border-radius: 10px; font-size: .875rem; color: var(--w2);
  transition: border-color .2s, color .2s;
}
.spec:hover { border-color: rgba(76,201,240,.22); color: var(--w) }

.spec-ic {
  font-size: .9rem; flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-d); border-radius: 7px;
  border: 1px solid rgba(76,201,240,.14);
}

/* ─── Business ──────────────────────────────────────────── */
.sec-biz .container {
  padding: 6.5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.biz-card {
  max-width: 700px; width: 100%;
  position: relative; overflow: hidden;
  background: var(--s2);
  border: 1px solid rgba(109,93,252,.22);
  border-radius: 24px;
  padding: 3.5rem 2.75rem 3rem;
  box-shadow: 0 0 80px rgba(109,93,252,.1),
              0 1px 0 rgba(255,255,255,.04) inset;
}

/* Top glow stripe */
.biz-card::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 55%; height: 1px;
  background: linear-gradient(to right, transparent, var(--v), transparent);
}

/* Ambient glow inside */
.biz-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% -5%, rgba(109,93,252,.2) 0%, transparent 65%);
  pointer-events: none;
}

.biz-card > * { position: relative; z-index: 1 }
.biz-card .s-desc { max-width: 560px; margin: 0 auto 2.25rem }

/* ─── App ────────────────────────────────────────────────── */
.sec-app {
  background: var(--s1);
  border-top: 1px solid var(--ln);
}

.sec-app .container { padding: 5.5rem 1.5rem }

.app-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
@media (max-width: 800px) { .app-grid { grid-template-columns: 1fr; gap: 3rem } }

.platforms { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem }

.plat {
  display: flex; align-items: center; gap: .4rem;
  background: var(--s3); border: 1px solid var(--ln2);
  color: var(--w2); padding: .4rem .85rem;
  border-radius: 8px; font-size: .8rem; font-weight: 500;
  transition: color .18s, border-color .18s;
}
.plat:hover { color: var(--w); border-color: rgba(255,255,255,.2) }

.app-visual {
  position: relative;
  background: linear-gradient(148deg, var(--s3) 0%, var(--s1) 100%);
  border: 1px solid var(--ln2);
  border-radius: 22px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; overflow: hidden;
}
.app-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 25%, rgba(109,93,252,.22) 0%, transparent 68%);
}
.app-visual > * { position: relative; filter: drop-shadow(0 0 22px rgba(109,93,252,.6)) }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--ln);
  padding: 2.25rem 1.5rem;
  text-align: center;
  color: var(--w3); font-size: .82rem; line-height: 1.9;
  position: relative; z-index: 1;
}
footer a { color: var(--v2) }
footer a:hover { text-decoration: underline }

/* ─── RTL ────────────────────────────────────────────────── */
[dir=rtl] { text-align: right }
[dir=rtl] .btns { flex-direction: row-reverse }
[dir=rtl] .lang-menu { right: auto; left: 0 }
[dir=rtl] .badge::before { background: linear-gradient(to left, transparent, var(--v)) }
[dir=rtl] .badge::after  { background: linear-gradient(to right, transparent, var(--v)) }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr }
  .hero h1 { font-size: 2.5rem; letter-spacing: -.03em }
  .btns { flex-direction: column; align-items: stretch }
  .btn { justify-content: center }
  .biz-card { padding: 2.5rem 1.5rem 2rem }
  .container { padding: 4rem 1.25rem }
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px }
::-webkit-scrollbar-track { background: var(--ink) }
::-webkit-scrollbar-thumb { background: rgba(109,93,252,.38); border-radius: 3px }
