/* ============================================================
   SellersStudio — Design System
   AI-native, cinematic, premium SaaS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Cormorant+Garamond:ital,wght@1,400;1,500;1,600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* ---- color ---- */
  --ink-0: #06060a;
  --ink-1: #0a0a10;
  --ink-2: #0e0e16;
  --ink-3: #14141e;
  --ink-4: #1c1c28;
  --line:  rgba(255,255,255,0.07);
  --line-2:rgba(255,255,255,0.12);
  --line-3:rgba(255,255,255,0.18);

  --text:        #f4f4f6;
  --text-mute:   #a0a0ac;
  --text-dim:    #6c6c78;
  --text-faint:  #43434f;

  /* AI accent: electric lime + ice cyan + warm aurora */
  --acc:        #d4ff3a;
  --acc-deep:   #b1e600;
  --acc-soft:   rgba(212,255,58,0.14);
  --acc-glow:   rgba(212,255,58,0.45);

  --ice:        #7eecff;
  --ice-soft:   rgba(126,236,255,0.18);

  --violet:     #b48cff;
  --magenta:    #ff7ad6;
  --amber:      #ffb45a;

  --danger:     #ff6f6f;
  --ok:         #66e0a3;

  /* ---- radius ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl:40px;

  /* ---- shadow ---- */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 40px -20px rgba(0,0,0,0.9);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 80px -30px rgba(0,0,0,0.9);
  --shadow-glow: 0 0 0 1px rgba(212,255,58,0.35), 0 18px 80px -10px rgba(212,255,58,0.35);

  /* ---- type scale ---- */
  --f-display: 'Geist', system-ui, sans-serif;
  --f-body:    'Geist', system-ui, sans-serif;
  --f-mono:    'Geist Mono', ui-monospace, monospace;
  --f-serif:   'Cormorant Garamond', 'Instrument Serif', 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--f-body);
  font-feature-settings: "ss01","ss02","cv11";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* ---- background atmosphere ---- */
.bg-atmosphere {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 12% 8%, rgba(126,236,255,0.10), transparent 70%),
    radial-gradient(40% 30% at 90% 12%, rgba(212,255,58,0.08), transparent 70%),
    radial-gradient(50% 35% at 50% 100%, rgba(180,140,255,0.07), transparent 70%),
    var(--ink-0);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1  0 0 0 0 1  0 0 0 0.15 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 30%, transparent 80%);
}

/* ---- typography ---- */
.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.serif-i {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
  /* Cormorant runs ~10% smaller than Instrument Serif at the same px size */
  font-size: 1.08em;
  line-height: 0.95;
}
.mono { font-family: var(--f-mono); }

/* ---- containers ---- */
.shell { width: 100%; padding: 0 clamp(20px, 4vw, 64px); }
.section { padding: clamp(80px, 10vw, 160px) 0; position: relative; }

/* ---- glass card ---- */
.glass {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass-strong {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}

/* ---- chip / tag ---- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255,255,255,0.025);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--acc); box-shadow: 0 0 12px var(--acc-glow);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .2s ease, border-color .25s ease;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}
.btn-primary {
  background: var(--acc);
  color: #0c0c10;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 14px 40px -10px var(--acc-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 22px 50px -10px var(--acc-glow);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--line-3); }

.btn-link {
  display: inline-flex; gap: 6px; align-items: center;
  color: var(--text); text-decoration: none;
  font-size: 14px; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.btn-link:hover { color: var(--acc); border-color: var(--acc); }

/* ---- divider ---- */
.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  width: 100%;
}

/* ---- gradient text ---- */
.gradient-text {
  background: linear-gradient(120deg, #ffffff 0%, #ffffff 35%, #7eecff 55%, #d4ff3a 75%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

/* ---- floating animations ---- */
@keyframes float-y { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 var(--acc-glow); opacity: 1 } 50% { box-shadow: 0 0 40px 8px var(--acc-glow); opacity: 0.6 } }
@keyframes spin-slow { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes scan { 0% { transform: translateY(-100%) } 100% { transform: translateY(200%) } }
@keyframes blink { 0%,49% { opacity: 1 } 50%,100% { opacity: 0.3 } }
@keyframes draw { from { stroke-dashoffset: 1000 } to { stroke-dashoffset: 0 } }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes flicker {
  0%, 12%, 20%, 100% { opacity: 1; }
  14%, 18% { opacity: 0.4; }
}

/* ---- reveal on scroll ---- */
.reveal { opacity: 1; }
.reveal-anim { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal-anim.in { opacity: 1; transform: none; }

/* ---- scroll bar ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ---- placeholder image visual ---- */
.placeholder-img {
  position: relative; overflow: hidden;
  background:
    radial-gradient(140% 80% at 30% 20%, rgba(126,236,255,0.18), transparent 60%),
    radial-gradient(120% 80% at 80% 80%, rgba(180,140,255,0.18), transparent 60%),
    linear-gradient(135deg, #1a1a26, #0c0c14);
}
.placeholder-img::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.5;
}

/* utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
.flex { display: flex; }
.grid { display: grid; }
.relative { position: relative; }
.text-center { text-align: center; }

/* selection */
::selection { background: var(--acc); color: #0c0c10; }
