/* EcomSharks design preview — tokens, base, layout, liquid glass */

:root {
  --blue: #0697c4;
  --blue-bright: #29b6ec;
  --ice: #a8e8ff;
  --bg: #04070b;
  --bg-raised: #0a1219;
  --text: #f1f6f9;
  --muted: #8fa1ad;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --field: rgba(0, 0, 0, 0.22);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --accent-grad: linear-gradient(120deg, #0697c4 0%, #29b6ec 45%, #c9f2ff 100%);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --sidebar-w: 232px;
  --gap: 22px;
  --spring: cubic-bezier(0.22, 1.25, 0.36, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #e9f0f4;
  --bg-raised: #f7fafc;
  --text: #0a1520;
  --muted: #586976;
  --line: rgba(10, 30, 45, 0.1);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --field: rgba(255, 255, 255, 0.65);
  --shadow: 0 30px 70px -35px rgba(10, 40, 60, 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font: 400 16px/1.55 Urbanist, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.5s, color 0.5s;
}

/* Ambient blue glows behind everything */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
body::before { width: 640px; height: 640px; left: 16%; top: -260px; background: rgba(6, 151, 196, 0.26); }
body::after { width: 520px; height: 520px; right: -180px; bottom: -180px; background: rgba(41, 182, 236, 0.13); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* Samples can't be dragged or saved by right-click (see main.js) */
.protected img, .protected video { user-select: none; -webkit-user-drag: none; pointer-events: none; }

.eyebrow {
  margin: 0;
  font: 700 0.74rem/1.4 "Space Grotesk", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }

/* ---------- Liquid glass surface ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* Specular highlight that follows the pointer (--mx / --my set in main.js) */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(168, 232, 255, 0.11), transparent 45%);
  pointer-events: none;
}
/* Thin light rim, brighter top-left and blue bottom-right */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.22), transparent 35%, transparent 65%, rgba(41, 182, 236, 0.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Layout ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: var(--gap);
  max-width: 1520px;
  margin: 0 auto;
  padding: var(--gap);
}
main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.section { padding: 44px 48px; scroll-margin-top: 100px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin-top: 10px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; }

/* Elements fade/slide in when scrolled into view (class added in main.js) */
.reveal { opacity: 0; transform: translateY(24px) scale(0.985); transition: opacity 0.8s ease, transform 0.9s var(--spring); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* iPhone Safari zooms into any text field under 16px when tapped — keep fields at 16px on phones */
@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; }
}
