/* ================================================================
   ConnectSphere — Web Design Studio
   ================================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: dark;

  --color-bg: #03112f;
  --color-bg-alt: #061a3e;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-text: #c9daf8;
  --color-text-bright: #f0f4ff;
  --color-accent: #4e9fff;
  --color-accent-soft: rgba(78, 159, 255, 0.15);
  --color-gradient-start: #4e9fff;
  --color-gradient-end: #a78bfa;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1100px;
  --header-h: 72px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-text-bright); }

ul { list-style: none; }

/* ── Container ─────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: #3b8fee;
  border-color: #3b8fee;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(78, 159, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-bright);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3 {
  color: var(--color-text-bright);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; margin-bottom: 6px; }

.gradient-text {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* ── Sections ──────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  max-width: 680px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-sub {
  max-width: 600px;
  margin-bottom: 48px;
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.1s;
}

.section-sub.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(3, 17, 47, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-bright);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand:hover { color: var(--color-text-bright); }

.brand-logo {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--color-text-bright); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--color-text);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(78, 159, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(24px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  border-color: rgba(78, 159, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(78, 159, 255, 0.08);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* stagger */
.card:nth-child(1) { transition-delay: 0s; }
.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }

/* ── Values ────────────────────────────────────────────── */
.value-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.value-item {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.value-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.value-item:nth-child(1) { transition-delay: 0s; }
.value-item:nth-child(2) { transition-delay: 0.1s; }
.value-item:nth-child(3) { transition-delay: 0.2s; }
.value-item:nth-child(4) { transition-delay: 0.3s; }

.value-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.value-item h3 { margin-bottom: 4px; }
.value-item p { font-size: 0.92rem; }

/* Stats column */
.stats-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:nth-child(1) { transition-delay: 0.05s; }
.stat-card:nth-child(2) { transition-delay: 0.15s; }
.stat-card:nth-child(3) { transition-delay: 0.25s; }

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-bright);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--color-text);
}

/* ── Process ───────────────────────────────────────────── */
.process-step {
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step:nth-child(1) { transition-delay: 0s; }
.process-step:nth-child(2) { transition-delay: 0.12s; }
.process-step:nth-child(3) { transition-delay: 0.24s; }

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 800;
  border: 2px solid rgba(78, 159, 255, 0.25);
}

.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; max-width: 280px; margin: 0 auto; }

/* ── CTA ───────────────────────────────────────────────── */
.section-cta {
  text-align: center;
  background: var(--color-bg-alt);
}

.section-cta .section-title,
.section-cta .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  margin-bottom: 16px;
}

.cta-note {
  font-size: 0.85rem;
  color: rgba(201, 218, 248, 0.55);
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-bright);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-logo {
  height: 28px;
  width: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(201, 218, 248, 0.4);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-col { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1 1 140px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 64px; }

  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.8rem; }
  .brand-name { display: none; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }

  .stats-col { flex-direction: column; }
}
