/* ── Cloudeek Inc — dark modern theme ─────────────────────────── */
:root {
  --bg: #0a0e1a;
  --bg-alt: #0e1424;
  --surface: #131a2e;
  --surface-2: #1a2340;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e6ecf5;
  --text-muted: #94a3b8;
  --accent-1: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #c084fc;
  --gradient: linear-gradient(100deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1120px, 92%); margin-inline: auto; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-1);
  margin-bottom: 1rem;
}

.section { padding: 6.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-sub { color: var(--text-muted); margin-top: 1rem; font-size: 1.05rem; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--gradient);
  color: #0a0e1a;
  box-shadow: 0 8px 30px rgba(129, 140, 248, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(129, 140, 248, 0.5); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; font-family: var(--mono); }

/* ── Header / nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; }
.brand-name {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.nav-cta:hover { border-color: var(--accent-2); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ── Hero ── */
.hero { position: relative; padding: 7.5rem 0 6rem; text-align: center; }
.hero-glow {
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(129, 140, 248, 0.22), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-sub {
  max-width: 620px;
  margin: 1.5rem auto 2.4rem;
  color: var(--text-muted);
  font-size: 1.15rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-terminal {
  max-width: 640px;
  margin: 4rem auto 0;
  background: rgba(13, 18, 34, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-align: left;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c3654; }
.terminal-bar span:nth-child(1) { background: #f87171; }
.terminal-bar span:nth-child(2) { background: #fbbf24; }
.terminal-bar span:nth-child(3) { background: #34d399; }
.terminal-bar em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.hero-terminal pre {
  padding: 1.2rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.9;
  overflow-x: auto;
}
.t-prompt { color: var(--accent-1); }
.t-ok { color: #34d399; }
.t-dim { color: #5b6b8a; }
.t-cursor { animation: blink 1.1s steps(1) infinite; color: var(--accent-1); }
@keyframes blink { 50% { opacity: 0; } }

/* ── Stats ── */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.2rem 0;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 1.15rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--text-muted); font-size: 0.85rem; }

/* ── About split ── */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-text p:not(.eyebrow) { color: var(--text-muted); margin-top: 1.2rem; }
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.about-card h3 { margin-bottom: 1.2rem; }
.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 2rem;
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(192, 132, 252, 0.18));
  border: 1px solid rgba(129, 140, 248, 0.45);
}
.check-list li::after {
  content: "✓";
  position: absolute;
  left: 4px; top: 0.42rem;
  font-size: 0.7rem;
  color: var(--accent-1);
}

/* ── Service cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  margin-bottom: 1.3rem;
  color: var(--accent-1);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(192, 132, 252, 0.14));
  border: 1px solid rgba(129, 140, 248, 0.3);
}
.card-icon svg { width: 22px; height: 22px; }
.card p { color: var(--text-muted); margin-top: 0.7rem; font-size: 0.95rem; }

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  display: block;
  margin-bottom: 0.9rem;
}
.step p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.6rem; }

/* ── Why grid ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-item {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.why-item h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.why-item p { color: var(--text-muted); font-size: 0.92rem; }

/* ── Contact ── */
.contact { position: relative; text-align: center; padding: 8rem 0; }
.contact-glow {
  position: absolute;
  bottom: -260px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.16), transparent 65%);
  pointer-events: none;
}
.contact-inner { position: relative; }
.contact .btn-lg { margin-top: 2.2rem; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 3rem 0 1.5rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal { padding-bottom: 2rem; }
.footer-legal p { color: #5b6b8a; font-size: 0.82rem; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards-grid, .steps { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 0.9rem 1.4rem; }
  .nav-cta { border: 0; background: none; }
}
@media (max-width: 640px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 5rem 0 4rem; }
  .cards-grid, .steps, .why-grid { grid-template-columns: 1fr; }
}
