/* ============================================================
   WIZIT — main.css
   Variables · Reset · Typography · Layout · Hero · Sections
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=JetBrains+Mono:wght@400&display=swap');

/* ── Variables ── */
:root {
  --bg:          #08080E;
  --surface:     #0F0F1A;
  --surface-2:   #14141F;
  --accent:      #B8974A;
  --accent-light:#D4B06A;
  --accent-dim:  rgba(184,151,74,0.12);
  --text:        #F0EDE8;
  --text-muted:  #8A8899;
  --border:      #1E1E2E;
  --border-light:#2A2A3E;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --max-w: 1200px;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --section-gap: 8rem;
  --section-gap-sm: 5rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) {
  body { cursor: auto; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: none; font-family: inherit; }
@media (hover: none) { button { cursor: auto; } }
svg { display: block; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}

section { padding-block: var(--section-gap); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-top: 1rem;
  line-height: 1.8;
}

/* ── Grain Overlay ── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9998;
  animation: grain-shift 9s steps(8) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0,0); }
  12%  { transform: translate(-4%,-8%); }
  25%  { transform: translate(6%,3%); }
  37%  { transform: translate(-3%,10%); }
  50%  { transform: translate(8%,-5%); }
  62%  { transform: translate(-6%,6%); }
  75%  { transform: translate(3%,-10%); }
  87%  { transform: translate(-8%,4%); }
  100% { transform: translate(0,0); }
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), opacity 0.2s;
  mix-blend-mode: normal;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(184,151,74,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.2s;
}
.cursor.hovered   { width: 20px; height: 20px; }
.cursor-ring.hovered { width: 56px; height: 56px; border-color: rgba(184,151,74,0.3); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 8rem 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(184,151,74,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(184,151,74,0.04) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: char-in 0.5s var(--ease-out) forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.8;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) 1.2s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) 1.4s forwards;
}

.hero-line {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
  display: none;
}

/* ── Keyframes ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes char-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
  margin-block: 0;
}

/* ── Stats Section ── */
.stats-section {
  padding-block: 5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.stat-item {
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-light);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-value .suffix { font-size: 0.6em; }
.stat-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}

/* ── Why Section ── */
.why-section {
  padding-block: var(--section-gap);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-block: 1.5rem 2.5rem;
}

.why-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-orb {
  position: absolute;
  border-radius: 50%;
}
.why-orb-1 {
  width: 280px; height: 280px;
  border: 1px solid var(--border-light);
  animation: spin-slow 20s linear infinite;
}
.why-orb-2 {
  width: 200px; height: 200px;
  border: 1px solid rgba(184,151,74,0.2);
  animation: spin-slow 14s linear infinite reverse;
}
.why-orb-3 {
  width: 120px; height: 120px;
  background: var(--accent-dim);
  border: 1px solid rgba(184,151,74,0.3);
}
.why-orb-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  top: 0; left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.why-mono {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: absolute;
  bottom: 1.5rem;
  text-align: center;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 5rem;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta-banner-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
  max-width: 600px;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding-block: 10rem 6rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184,151,74,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .section-label { margin-bottom: 1rem; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-top: 1.25rem;
  line-height: 1.8;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  :root { --section-gap: 5rem; }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .why-visual { height: 260px; }
  .why-orb-1 { width: 200px; height: 200px; }
  .why-orb-2 { width: 140px; height: 140px; }
  .why-orb-3 { width: 80px; height: 80px; }

  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-item + .stat-item::before { display: none; }
  .stat-item { border-top: 1px solid var(--border); }

  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding-inline: 1.25rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
