/* ==========================================================================
   Stunnersite Studio — Design System
   ========================================================================== */

:root {
  /* Palette — Dark, tech-forward */
  --bg: #0a0e1a;
  --bg-soft: #0f1424;
  --bg-card: #131a2e;
  --bg-card-hover: #182040;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e8eaf2;
  --text-dim: #a4a9bd;
  --text-mute: #6b7290;

  --accent: #7c5cff;     /* violet */
  --accent-2: #4ee0ff;   /* cyan */
  --accent-warm: #ffc270; /* warm amber (for portfolio cards only) */

  --grad: linear-gradient(135deg, #7c5cff 0%, #4ee0ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.18) 0%, rgba(78, 224, 255, 0.18) 100%);

  /* Type */
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing & radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --container: 1200px;
  --container-wide: 1320px;

  --shadow-card: 0 1px 0 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px -10px rgba(124, 92, 255, 0.4);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-2); }

ul { list-style: none; padding: 0; margin: 0; }

/* Selection */
::selection { background: var(--accent); color: white; }

/* Grad text helper */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--lg { padding: 16px 28px; font-size: 15px; }

.btn--primary {
  background: var(--grad);
  color: #0a0e1a;
  font-weight: 600;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  color: #0a0e1a;
}

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

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.88);
}

.nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav__logo:hover { color: var(--text); }
.nav__logo em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
  margin-left: 2px;
}

.nav__links {
  display: flex;
  gap: 36px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}

.nav__links a {
  color: var(--text-dim);
  position: relative;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--grad);
  transition: width 0.25s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__cta { padding: 10px 20px; font-size: 13px; }

@media (max-width: 860px) {
  .nav__inner { padding: 14px 20px; gap: 16px; }
  .nav__links { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 32px 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 14, 26, 0) 0%, rgba(10, 14, 26, 0.4) 60%, var(--bg) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 32px;
}

.hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4eff9a;
  box-shadow: 0 0 12px #4eff9a;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  max-width: 14ch;
}

.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 40px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 80px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 600px;
}

.hero__meta > div {
  display: flex;
  flex-direction: column;
}

.hero__meta strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero__meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-top: 4px;
}

@media (max-width: 760px) {
  .hero { padding: 120px 20px 60px; }
  .hero__meta { gap: 28px; }
  .hero__meta strong { font-size: 22px; }
}

/* ==========================================================================
   Strip / trusted by
   ========================================================================== */

.strip {
  padding: 40px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.strip__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin: 0 0 16px;
}

.strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  opacity: 0.85;
}

.dotsep { color: var(--text-mute); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 120px 32px;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.section--dark {
  max-width: none;
  background: var(--bg-soft);
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--dark > * {
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 72px;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin: 0 0 20px;
}

.eyebrow--light { color: var(--accent-2); }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 20px;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

@media (max-width: 760px) {
  .section { padding: 80px 20px; }
  .section--dark > * { padding-left: 20px; padding-right: 20px; }
  .section__head { margin-bottom: 48px; }
}

/* ==========================================================================
   Services grid
   ========================================================================== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.service:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.service__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}

.service h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--text);
}

.service p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.bullets li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--accent-2);
}

/* ==========================================================================
   Process
   ========================================================================== */

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: process;
  padding: 0;
  list-style: none;
}

.process li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
}

.process__num {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.process h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--text);
}

.process p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing {
  display: flex;
  justify-content: center;
}

.pricing__card {
  width: 100%;
  max-width: 880px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.pricing__card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--grad);
  border-radius: var(--r-xl);
  z-index: -1;
  opacity: 0.25;
  filter: blur(40px);
}

.pricing__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.pricing__col { text-align: center; }

.pricing__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  margin: 0 0 12px;
}

.pricing__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  line-height: 1;
}

.pricing__num small {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
  margin-left: 4px;
  letter-spacing: 0;
}

.pricing__sub {
  font-size: 13px;
  color: var(--text-dim);
  margin: 10px 0 0;
}

.pricing__divider {
  width: 1px;
  height: 80px;
  background: var(--border);
}

@media (max-width: 640px) {
  .pricing__card { padding: 32px 24px; }
  .pricing__row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pricing__divider {
    width: 60%;
    height: 1px;
    margin: 0 auto;
  }
}

.pricing__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.pricing__features h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0 0 16px;
}

.pricing__features ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing__features li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}

.pricing__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-2);
  font-weight: 600;
}

.pricing__features .muted li::before {
  content: "×";
  color: var(--text-mute);
}

@media (max-width: 640px) {
  .pricing__features { grid-template-columns: 1fr; gap: 28px; }
}

.pricing__cta {
  text-align: center;
}

.pricing__fineprint {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin: 18px 0 0;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio__card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
  color: var(--text);
}

.portfolio__card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  color: var(--text);
}

.portfolio__card--soon {
  opacity: 0.7;
}

.portfolio__visual {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.portfolio__visual--peach {
  background: linear-gradient(135deg, #f5e0c8 0%, #e9c9a3 100%);
}

.portfolio__visual--peach .portfolio__brand {
  color: #2b1f10;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.portfolio__visual--peach .portfolio__brand em {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 500;
  color: #8a5a3a;
  margin-left: 4px;
}

.portfolio__visual--peach .portfolio__tag {
  color: rgba(43, 31, 16, 0.65);
}

.portfolio__visual--blue {
  background: linear-gradient(135deg, #1a2952 0%, #243a6d 100%);
}

.portfolio__visual--blue .portfolio__brand {
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.portfolio__visual--blue .portfolio__tag {
  color: rgba(255, 255, 255, 0.6);
}

.portfolio__visual--neutral {
  background: linear-gradient(135deg, #2d3142 0%, #404659 100%);
}

.portfolio__visual--neutral .portfolio__brand {
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
}

.portfolio__visual--neutral .portfolio__tag {
  color: rgba(255, 255, 255, 0.55);
}

.portfolio__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.portfolio__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.portfolio__meta {
  padding: 24px 28px 28px;
}

.portfolio__meta h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.portfolio__meta p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 26px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq details:hover { border-color: var(--border-strong); }

.faq details[open] {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent-2);
  font-weight: 400;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 16px 0 0;
}

/* ==========================================================================
   CTA section
   ========================================================================== */

.section--cta {
  text-align: center;
  padding: 140px 32px;
  position: relative;
  overflow: hidden;
}

.section--cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: var(--grad-soft);
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
}

.cta {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}

.cta__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 36px;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.cta__details {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cta__details a:hover { color: var(--accent-2); }

@media (max-width: 760px) {
  .section--cta { padding: 100px 20px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 64px 32px 28px;
}

.footer__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__tag {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-dim);
  font-size: 14px;
}

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

.footer__cols h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  margin: 0 0 16px;
  font-weight: 500;
}

.footer__cols ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__cols li, .footer__cols a {
  font-size: 14px;
  color: var(--text-dim);
}

.footer__cols a:hover { color: var(--accent-2); }

.footer__bottom {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

@media (max-width: 760px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Motion — respect reduced
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
