/* ============================================================
   SUPREME.LV — Design System
   Premium dark studio aesthetic · glassmorphism · gradient accents
   ============================================================ */

:root {
  /* Palette */
  --bg-0: #07060d;
  --bg-1: #0c0a18;
  --bg-2: #131127;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #ECEAF6;
  --text-mute: #9994B0;
  --text-dim: #696480;

  /* Brand */
  --brand-1: #A855F7;     /* violet */
  --brand-2: #06B6D4;     /* cyan */
  --brand-3: #EC4899;     /* pink */
  --accent: #FFD24C;
  --ok: #10B981;

  --grad: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  --grad-soft: linear-gradient(135deg, rgba(168,85,247,0.18) 0%, rgba(6,182,212,0.18) 100%);
  --grad-text: linear-gradient(120deg, #C084FC 0%, #67E8F9 50%, #F0ABFC 100%);

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.3);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px rgba(168,85,247,0.35);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--brand-1); color: white; }

html {
  scroll-behavior: smooth;
  background: var(--bg-0);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

@media (max-width: 1024px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
input, textarea { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ============================================================
   BACKGROUND LAYERS
   ============================================================ */

.bg-grid {
  position: fixed; inset: 0;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.bg-noise {
  position: fixed; inset: 0;
  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='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.bg-gradient {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.6s var(--ease);
  opacity: 0.7;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.bg-orb-1 { width: 500px; height: 500px; background: var(--brand-1); top: -100px; right: -100px; animation: orb1 20s ease-in-out infinite; }
.bg-orb-2 { width: 400px; height: 400px; background: var(--brand-2); bottom: 20%; left: -150px; animation: orb2 25s ease-in-out infinite; }
.bg-orb-3 { width: 350px; height: 350px; background: var(--brand-3); top: 60%; right: 10%; animation: orb3 18s ease-in-out infinite; opacity: 0.3; }

@keyframes orb1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-100px,80px) scale(1.15)} }
@keyframes orb2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(120px,-60px) scale(0.9)} }
@keyframes orb3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-80px,-100px) scale(1.2)} }

/* ============================================================
   CURSOR
   ============================================================ */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: white;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid white;
  transition: transform 0.2s var(--ease-out), width 0.3s, height 0.3s;
}
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--brand-2); }

@media (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   LOADER
   ============================================================ */

.loader {
  position: fixed; inset: 0;
  background: var(--bg-0);
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-text {
  font-family: var(--font-serif);
  font-size: 80px;
  letter-spacing: 0.05em;
  display: flex; gap: 8px;
  margin-bottom: 32px;
}
.loader-text span {
  display: inline-block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: loaderLetter 1.2s var(--ease) infinite;
}
.loader-text span:nth-child(1) { animation-delay: 0.0s; }
.loader-text span:nth-child(2) { animation-delay: 0.1s; }
.loader-text span:nth-child(3) { animation-delay: 0.2s; }
.loader-text span:nth-child(4) { animation-delay: 0.3s; }
.loader-text span:nth-child(5) { animation-delay: 0.4s; }
.loader-text span:nth-child(6) { animation-delay: 0.5s; }
.loader-text span:nth-child(7) { animation-delay: 0.6s; }
@keyframes loaderLetter {
  0%,100% { transform: translateY(0); opacity: 0.6; }
  50%     { transform: translateY(-12px); opacity: 1; }
}
.loader-bar {
  width: 220px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-bar span {
  display: block; height: 100%;
  background: var(--grad);
  animation: loadBar 1.6s var(--ease) forwards;
}
@keyframes loadBar { from { width: 0; } to { width: 100%; } }

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  transition: top 0.3s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 24px;
  background: rgba(12, 10, 24, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.header.scrolled .header-inner {
  background: rgba(7, 6, 13, 0.85);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  animation: logoSpin 12s linear infinite;
}
@keyframes logoSpin { to { transform: rotate(360deg); } }
.logo-text { display: inline-flex; align-items: baseline; gap: 0; }
.logo-text i {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.9em;
}

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-mute);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.header-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--grad);
  color: white;
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .lang-switch { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 8px 30px rgba(168,85,247,0.4);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(168,85,247,0.55); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.3); }
.btn-ghost .play {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-ghost .play svg { width: 10px; height: 10px; color: white; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 180px 0 100px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 32px;
}
.dot-pulse {
  width: 8px; height: 8px;
  background: var(--ok);
  border-radius: 50%;
  position: relative;
}
.dot-pulse::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s infinite;
  opacity: 0.4;
}
@keyframes pulse { 0%{transform:scale(0.8);opacity:0.5} 100%{transform:scale(2);opacity:0} }

.hero-title {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  font-family: var(--font-sans);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.reveal-text {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.reveal-text.in { transform: translateY(0); }

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-mute);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.6;
}
.hero-sub b { color: var(--text); font-weight: 600; }

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat { position: relative; }
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.stat-suffix {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 8px;
}

/* Hero floating cards */
.hero-visual {
  position: absolute;
  top: 140px; right: 0;
  width: 480px;
  pointer-events: none;
}
.hero-card {
  position: absolute;
  background: rgba(20, 18, 38, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  pointer-events: auto;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%     { transform: translateY(-16px) rotate(var(--rot, 0deg)); }
}
.hero-card-1 {
  --rot: -4deg;
  top: 0; right: 60px;
  width: 320px;
  animation-delay: 0s;
}
.hero-card-2 {
  --rot: 3deg;
  top: 200px; right: 220px;
  width: 280px;
  animation-delay: 1.5s;
}
.hero-card-3 {
  --rot: -2deg;
  top: 340px; right: 0;
  width: 320px;
  animation-delay: 3s;
}

.card-head {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.card-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.card-dot:nth-child(1) { background: #ff5f57; }
.card-dot:nth-child(2) { background: #febc2e; }
.card-dot:nth-child(3) { background: #28c840; }
.card-title { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); margin-left: auto; }

.bar-row {
  display: flex; justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-mute);
}
.bar-row b { color: var(--text); font-weight: 600; }
.bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}
.bar span {
  display: block; height: 100%;
  background: var(--grad);
  border-radius: 4px;
  animation: barFill 1.4s var(--ease) forwards;
  width: 0 !important;
}
@keyframes barFill { to { width: var(--target); } }
.hero-card-1 .bar:nth-of-type(1) span { animation-delay: 0.3s; --target: 92%; }
.hero-card-1 .bar:nth-of-type(2) span { animation-delay: 0.5s; --target: 78%; }
.hero-card-1 .bar:nth-of-type(3) span { animation-delay: 0.7s; --target: 84%; }

.terminal { font-family: var(--font-mono); font-size: 12px; }
.term-line { padding: 3px 0; }
.term-line .prompt { color: var(--brand-2); margin-right: 6px; }
.term-line.muted { color: var(--text-dim); }
.term-line.ok { color: var(--ok); }

.ai-card { font-size: 13px; }
.ai-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.ai-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad);
  position: relative;
}
.ai-avatar::after {
  content: '';
  position: absolute; inset: 8px;
  background: white;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2L4 7v10l8 5 8-5V7l-8-5z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2L4 7v10l8 5 8-5V7l-8-5z' fill='black'/></svg>") center/contain no-repeat;
}
.ai-head b { display: block; font-size: 13px; }
.ai-head small { font-size: 11px; color: var(--ok); }
.ai-quote { font-size: 13px; line-height: 1.5; color: var(--text); margin-bottom: 10px; }
.ai-quote i { font-family: var(--font-serif); color: var(--brand-1); font-style: italic; }
.ai-foot { font-size: 11px; color: var(--text-dim); }

@media (max-width: 1100px) {
  .hero-visual { display: none; }
}

.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--text-mute), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  position: relative;
  z-index: 2;
  background: rgba(7,6,13,0.5);
  backdrop-filter: blur(20px);
}
.marquee-track {
  display: flex; gap: 32px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-serif);
  font-size: 36px;
  font-style: italic;
  font-weight: 400;
}
.marquee-track span {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  opacity: 0.85;
}
.marquee-track .sep {
  background: none;
  color: var(--brand-1);
  -webkit-text-fill-color: var(--brand-1);
  opacity: 0.6;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION
   ============================================================ */

.section {
  padding: 140px 0;
  position: relative;
  z-index: 2;
}
.section-tight { padding: 100px 0; }
.section-head {
  max-width: 780px;
  margin-bottom: 64px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-bottom: 24px;
}
.eyebrow i {
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 18px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-mute);
  max-width: 560px;
}

/* ============================================================
   SERVICES
   ============================================================ */

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

.service-card {
  position: relative;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.3s, background 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--grad);
  border-radius: var(--r-lg);
  opacity: 0;
  z-index: -1;
  filter: blur(20px);
  transition: opacity 0.4s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.service-card:hover::before { opacity: 0.4; }

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}
.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--brand-2);
  margin-bottom: 28px;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.05); }
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-weight: 700;
}
.service-card > p {
  font-size: 15px;
  color: var(--text-mute);
  line-height: 1.6;
  margin-bottom: 24px;
}
.service-list {
  list-style: none;
  margin-bottom: 32px;
}
.service-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 14px;
  color: var(--text-mute);
  border-bottom: 1px dashed var(--border);
}
.service-list li::before {
  content: '✦';
  position: absolute; left: 0;
  color: var(--brand-1);
  font-family: var(--font-serif);
}
.service-list li:last-child { border-bottom: none; }

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: all 0.3s;
}
.service-cta svg { width: 14px; height: 14px; transition: transform 0.3s; }
.service-cta:hover { background: var(--grad); color: white; border-color: transparent; }
.service-cta:hover svg { transform: translateX(4px); }

.service-card-feature {
  background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(6,182,212,0.1));
  border-color: rgba(168,85,247,0.3);
}
.service-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--grad);
  color: white;
  border-radius: 999px;
}

.service-card-cta {
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(6,182,212,0.08));
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed rgba(168,85,247,0.3);
}
.service-card-cta h3 { margin-bottom: 16px; }
.service-card-cta p { margin-bottom: 32px; }
.cta-glow {
  position: absolute;
  width: 200px; height: 200px;
  background: var(--grad);
  filter: blur(60px);
  opacity: 0.2;
  right: -40px; bottom: -40px;
  border-radius: 50%;
  animation: ctaGlow 4s ease-in-out infinite;
}
@keyframes ctaGlow { 0%,100%{opacity:0.2; transform:scale(1)} 50%{opacity:0.4; transform:scale(1.1)} }

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS
   ============================================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 30px; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-1), var(--brand-2), transparent);
  opacity: 0.5;
}
.process-step {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
}
.step-num {
  width: 60px; height: 60px;
  margin: -54px auto 20px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  background-image: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
}
.process-step h4 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.01em; }
.process-step p { font-size: 14px; color: var(--text-mute); margin-bottom: 16px; }
.step-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}
@media (max-width: 500px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.port-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.port-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.port-card-lg { grid-column: span 2; }
.port-img {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}
.port-card-lg .port-img { aspect-ratio: 16 / 8; }
.port-img::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent, rgba(0,0,0,0.4));
}

.port-mock {
  position: absolute;
  inset: 20px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 16px;
  transform: rotate(-4deg);
  transition: transform 0.5s var(--ease);
}
.port-card:hover .port-mock { transform: rotate(0deg) scale(1.04); }
.mock-bar { height: 16px; background: rgba(0,0,0,0.1); border-radius: 4px; margin-bottom: 16px; width: 50%; }
.mock-row { height: 8px; background: rgba(0,0,0,0.08); border-radius: 4px; margin-bottom: 8px; }
.mock-row.short { width: 65%; }
.mock-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.mock-grid i { aspect-ratio: 1; background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.12)); border-radius: 8px; display:block; }

.port-mock-ecom { padding: 14px; }
.port-mock-ecom .mock-pill { width: 40%; height: 24px; background: linear-gradient(90deg, #f43f5e, #fb923c); border-radius: 999px; margin-bottom: 14px; }
.port-mock-ecom .mock-tiles { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.port-mock-ecom .mock-tiles i { aspect-ratio: 1; background: rgba(0,0,0,0.08); border-radius: 8px; display:block; }

.port-mock-crm { padding: 0; display:flex; }
.port-mock-crm .mock-sidebar { width: 30%; background: rgba(0,0,0,0.06); border-radius: 12px 0 0 12px; }
.port-mock-crm .mock-content { flex:1; padding: 14px; display:flex; flex-direction: column; gap: 8px; }
.port-mock-crm .mock-content i { height: 16px; background: rgba(0,0,0,0.08); border-radius: 4px; display:block; }

.port-mock-ai { padding: 14px; display:flex; flex-direction:column; gap:10px; }
.port-mock-ai .mock-chat { height: 28px; background: rgba(0,0,0,0.08); border-radius: 12px 12px 12px 4px; width: 85%; }
.port-mock-ai .mock-chat.short { background: linear-gradient(90deg, #8b5cf6, #ec4899); width: 60%; margin-left: auto; border-radius: 12px 12px 4px 12px; }

.port-mock-web { padding: 14px; }
.port-mock-web .mock-hero { height: 70px; background: linear-gradient(135deg, #facc15, #f97316); border-radius: 8px; margin-bottom: 10px; }
.port-mock-web .mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.port-mock-web .mock-cards i { height: 30px; background: rgba(0,0,0,0.08); border-radius: 6px; display:block; }

.port-meta { padding: 24px; }
.port-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 12px;
}
.port-meta h4 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.01em; }
.port-meta p { font-size: 14px; color: var(--text-mute); }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .port-card-lg { grid-column: auto; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 12px; left: 24px;
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--brand-1);
  opacity: 0.4;
  line-height: 1;
}
.testimonial blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 24px;
  position: relative; z-index: 1;
  padding-top: 24px;
}
.testimonial figcaption {
  display: flex; align-items: center; gap: 12px;
}
.testimonial .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
}
.testimonial b { display: block; font-size: 14px; }
.testimonial small { font-size: 12px; color: var(--text-mute); }

@media (max-width: 900px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* ============================================================
   ARTICLES
   ============================================================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s;
  cursor: pointer;
}
.article-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.article-img { aspect-ratio: 16 / 9; }
.article-body { padding: 28px; }
.article-meta {
  display: flex; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.article-meta span:first-child { color: var(--brand-2); }
.article-card h4 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.25;
}
.article-card p {
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 20px;
}
.article-link {
  font-size: 14px;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.articles-cta { text-align: center; margin-top: 48px; }

@media (max-width: 900px) {
  .articles-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-list {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.3s;
}
.contact-item:hover {
  background: var(--surface-2);
  border-color: var(--brand-2);
  transform: translateX(4px);
}
.contact-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  border-radius: 12px;
  color: var(--brand-2);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item small { display:block; font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.contact-item b { font-size: 16px; font-weight: 600; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
}
.form-row { margin-bottom: 24px; }
.form-row > label {
  display: block;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip input { display: none; }
.chip:has(input:checked) {
  background: var(--grad);
  border-color: transparent;
  color: white;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field {
  position: relative;
  margin-bottom: 16px;
}
.field input, .field textarea {
  width: 100%;
  padding: 18px 16px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-2);
  background: rgba(6,182,212,0.05);
}
.field label {
  position: absolute;
  top: 18px; left: 16px;
  font-size: 14px;
  color: var(--text-mute);
  pointer-events: none;
  transition: all 0.2s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 11px;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.form-foot {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  position: relative;
  z-index: 2;
  background: rgba(7,6,13,0.6);
  backdrop-filter: blur(20px);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-mute);
  margin-top: 16px;
  max-width: 340px;
  line-height: 1.6;
}
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand-2); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* ============================================================
   MODAL
   ============================================================ */

.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s var(--ease);
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 40px;
  z-index: 1;
  animation: scaleIn 0.4s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--brand-1); }
.modal-close svg { width: 16px; height: 16px; }
.modal-card h3 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal-card > p { color: var(--text-mute); margin-bottom: 24px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================================
   EXTENSIONS — pages added in v2 (sale, subscribe, mobile nav,
   service detail, article body, etc.)
   ============================================================ */

/* small button */
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  border-radius: 8px;
}
.menu-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.2s;
}
.header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  margin: 12px 16px 0;
  background: rgba(12, 10, 24, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px;
}
.mobile-nav a {
  padding: 14px 18px;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-langs { display: flex; gap: 6px; padding: 10px 18px; }
.mobile-langs a {
  flex: 1; text-align: center;
  padding: 8px 0;
  border-radius: 999px;
  border: 1px solid var(--border) !important;
  font-size: 12px;
  font-weight: 600;
}
.mobile-langs a.active { background: var(--grad); color: white; }
.header.menu-open .mobile-nav { display: flex; }

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
}

/* Sections — top spacing for non-home pages */
.section-top { padding-top: 180px; }

/* Container narrow */
.container-narrow { max-width: 860px; }

/* Page back link */
.page-back {
  margin-bottom: 32px;
}
.page-back a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.page-back a:hover { color: var(--brand-2); }

/* Service card foot (read + request) */
.service-foot {
  display: flex; gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.service-card { display: flex; flex-direction: column; }
.service-cta-primary { background: var(--grad); color: white; border-color: transparent; }
.service-cta-primary:hover { background: linear-gradient(135deg, var(--brand-2), var(--brand-1)); }

/* Service big list */
.service-list-big li {
  font-size: 16px; padding: 14px 0 14px 28px;
}
.service-list-big li::before { font-size: 1.2em; top: 12px; }

/* Service hero (detail) */
.service-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}
.service-hero h1 { font-size: clamp(36px, 6vw, 72px); }
.service-hero-right { position: sticky; top: 100px; }
.service-hero-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  text-align: center;
}
.service-icon.big {
  width: 96px; height: 96px;
  margin: 0 auto 28px;
  background: var(--grad-soft);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-2);
  border: 1px solid var(--border);
}
.service-icon.big svg { width: 52px; height: 52px; }
.service-hero-spec {
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.service-hero-spec > div { display: flex; justify-content: space-between; font-size: 14px; }
.service-hero-spec small { color: var(--text-mute); }
.service-hero-spec b { font-weight: 600; }

.service-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-section {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.service-section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--brand-2);
}
.service-section h2 {
  font-size: 22px;
  margin: 12px 0;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.service-section p { font-size: 15px; color: var(--text-mute); line-height: 1.6; }

@media (max-width: 900px) {
  .service-hero { grid-template-columns: 1fr; }
  .service-hero-right { position: static; }
  .service-sections { grid-template-columns: 1fr; }
}

/* CTA band */
.cta-band {
  margin-top: 80px;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(6,182,212,0.12));
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: var(--r-xl);
  text-align: center;
}
.cta-band h3 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-band p {
  font-size: 17px;
  color: var(--text-mute);
  max-width: 540px;
  margin: 0 auto 32px;
}

/* Sale section */
.sale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sale-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s;
  display: flex; flex-direction: column;
}
.sale-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.sale-card.is-sold { opacity: 0.65; }
.sale-img {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.sale-img img { width: 100%; height: 100%; object-fit: cover; }
.sale-price {
  position: absolute;
  bottom: 14px; left: 14px;
  padding: 8px 14px;
  background: rgba(7, 6, 13, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  display: flex; gap: 8px; align-items: baseline;
}
.sale-price small { color: var(--text-mute); font-size: 11px; }
.sale-price b {
  font-family: var(--font-serif);
  font-size: 18px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sale-sold-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 6px 14px;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  color: var(--text-mute);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.sale-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.sale-body h4 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em; }
.sale-body p { font-size: 14px; color: var(--text-mute); margin-bottom: 20px; flex: 1; }
.sale-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .sale-grid { grid-template-columns: 1fr; }
}

/* Sale detail */
.sale-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}
.sale-detail-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}
.sale-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.sale-detail-body { padding-top: 12px; }
.sale-price-big {
  display: flex; align-items: baseline; gap: 12px;
  margin: 24px 0 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
}
.sale-price-big small {
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sale-price-big b {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
@media (max-width: 900px) {
  .sale-detail { grid-template-columns: 1fr; }
  .sale-price-big b { font-size: 36px; }
}

/* Subscribe block */
.subscribe-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(6,182,212,0.08));
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.subscribe-box::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: var(--brand-1);
  filter: blur(80px);
  opacity: 0.15;
  right: -100px; top: -100px;
  border-radius: 50%;
}
.subscribe-text h3 {
  font-family: var(--font-sans);
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-weight: 700;
}
.subscribe-text p { color: var(--text-mute); font-size: 15px; }
.subscribe-form {
  display: flex; gap: 8px;
  position: relative; z-index: 1;
}
.subscribe-form input {
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  min-width: 240px;
}
.subscribe-form input:focus {
  outline: none;
  border-color: var(--brand-2);
}
@media (max-width: 700px) {
  .subscribe-box { grid-template-columns: 1fr; padding: 32px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input { width: 100%; min-width: 0; }
}

/* Article detail */
.article-hero { max-width: 780px; margin: 0 auto 40px; }
.article-hero .article-meta {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.article-title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-weight: 700;
}
.article-lead {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-mute);
  font-style: italic;
  margin-bottom: 24px;
}
.article-author {
  display: flex; gap: 12px; align-items: center;
}
.article-author .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); }
.article-author b { display: block; font-size: 14px; }
.article-author small { font-size: 12px; color: var(--text-mute); }
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: 0 auto 60px;
  max-width: 960px;
  position: relative;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.port-mock.big { inset: 60px; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}
.article-body h2 {
  font-size: 32px;
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.article-body h3 {
  font-size: 24px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.article-body p {
  margin-bottom: 20px;
  color: var(--text-mute);
}
.article-body p:first-of-type::first-letter {
  font-family: var(--font-serif);
  float: left;
  font-size: 80px;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; color: var(--text-mute); }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--brand-2); border-bottom: 1px solid var(--brand-2); }
.article-body img { max-width: 100%; border-radius: 12px; margin: 28px 0; }
.article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--brand-1);
  background: var(--surface);
  border-radius: 12px;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Toast (after submit) */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 9999;
  padding: 16px 24px;
  background: rgba(16, 185, 129, 0.95);
  color: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s var(--ease);
  font-weight: 600;
  font-size: 14px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: rgba(244, 63, 94, 0.95); }

