/* =========================================================
   RM Web Design — styles.css
   Theme: Aether (deep space + electric blue)
   ========================================================= */

:root {
  --bg-0: #04060f;
  --bg-1: #060a1a;
  --bg-2: #0a1230;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f6ff;
  --text-soft: #cdd4ee;
  --text-muted: #8c95b8;
  --text-dim: #5b6388;

  --brand-50: #eff5ff;
  --brand-200: #bfd7ff;
  --brand-300: #90b8ff;
  --brand-400: #5e93ff;
  --brand-500: #3b71f6;
  --brand-600: #2657e6;
  --brand-700: #1d40c2;
  --brand-800: #1a2e8a;

  --glow: 0 0 80px rgba(59, 113, 246, 0.35);
  --glow-soft: 0 0 40px rgba(59, 113, 246, 0.25);
  --glow-strong: 0 10px 60px rgba(59, 113, 246, 0.45);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 10px;

  --container: 1240px;
  --section-pad: clamp(80px, 11vw, 160px);

  --font-head: "Albert Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Chivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

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

/* ====================== Reset / base ====================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-0);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #112053 0%, transparent 50%),
              radial-gradient(900px 700px at 100% 0%, #1a1d6e 0%, transparent 55%),
              linear-gradient(180deg, var(--bg-0), var(--bg-1));
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul { list-style: none; }

em { font-style: italic; }

::selection {
  background: var(--brand-500);
  color: #fff;
}

/* ====================== Custom cursor ====================== */

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor {
  width: 36px;
  height: 36px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  transition: width 0.3s var(--ease),
              height 0.3s var(--ease),
              background 0.3s var(--ease),
              border-color 0.3s var(--ease),
              opacity 0.3s var(--ease);
  backdrop-filter: invert(1);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
}

.cursor.is-link {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
}

.cursor.is-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.16);
}

.cursor.is-card {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.06);
}

.cursor.is-hidden {
  opacity: 0;
}

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ====================== Grain + progress ====================== */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  z-index: 1001;
  box-shadow: 0 0 12px rgba(94, 147, 255, 0.7);
  transition: width 0.08s linear;
}

/* ====================== Preloader ====================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-0);
  display: grid;
  place-items: center;
  gap: 24px;
  grid-template-rows: auto auto auto;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader__logo {
  width: 80px;
  height: 80px;
  color: var(--brand-400);
  filter: drop-shadow(0 0 18px rgba(94, 147, 255, 0.5));
  animation: spin 6s linear infinite;
}

.preloader__ring {
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  animation: drawRing 1.6s var(--ease) forwards;
}

.preloader__text {
  display: flex;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
  color: var(--text-soft);
}

.preloader__text span {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.6s var(--ease) forwards;
}

.preloader__text span:nth-child(1)  { animation-delay: 0.10s }
.preloader__text span:nth-child(2)  { animation-delay: 0.15s }
.preloader__text span:nth-child(3)  { animation-delay: 0.20s }
.preloader__text span:nth-child(4)  { animation-delay: 0.25s }
.preloader__text span:nth-child(5)  { animation-delay: 0.30s }
.preloader__text span:nth-child(6)  { animation-delay: 0.35s }
.preloader__text span:nth-child(7)  { animation-delay: 0.40s }
.preloader__text span:nth-child(8)  { animation-delay: 0.45s }
.preloader__text span:nth-child(9)  { animation-delay: 0.50s }
.preloader__text span:nth-child(10) { animation-delay: 0.55s }
.preloader__text span:nth-child(11) { animation-delay: 0.60s }
.preloader__text span:nth-child(12) { animation-delay: 0.65s }
.preloader__text span:nth-child(13) { animation-delay: 0.70s }

.preloader__bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.preloader__bar i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  animation: load 1.6s var(--ease) forwards;
}

@keyframes load { to { width: 100% } }
@keyframes drawRing { to { stroke-dashoffset: 0 } }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

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

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 32px), 1320px);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 12px 16px 12px 22px;
  border-radius: 999px;
  background: rgba(8, 12, 30, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.nav.is-hidden {
  transform: translateX(-50%) translateY(-120%);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.nav__logo {
  width: 34px;
  height: 34px;
  color: var(--brand-400);
  filter: drop-shadow(0 0 8px rgba(94, 147, 255, 0.35));
  transition: transform 0.5s var(--ease);
}
.nav__brand:hover .nav__logo { transform: rotate(20deg) scale(1.05); }

.nav__name {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 15px;
  color: var(--text-soft);
}
.nav__name strong { color: var(--text); font-weight: 800; }

.nav__links {
  display: inline-flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.nav__links a {
  position: relative;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.nav__links a i {
  font-style: normal;
  font-size: 10px;
  color: var(--brand-400);
  opacity: 0.6;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__links a.is-active i { opacity: 1; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child  { top: 22px; }

.nav__toggle.is-open span:first-child { top: 19px; transform: rotate(45deg); }
.nav__toggle.is-open span:last-child  { top: 19px; transform: rotate(-45deg); }

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease),
              color 0.3s var(--ease),
              background 0.3s var(--ease),
              box-shadow 0.4s var(--ease),
              border-color 0.3s var(--ease);
  will-change: transform;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--small { padding: 10px 16px; font-size: 13px; }
.btn--lg    { padding: 18px 28px; font-size: 15px; }
.btn--full  { width: 100%; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover {
  box-shadow: var(--glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); }

.btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease);
  z-index: -1;
}
.btn:hover .btn__shine { transform: translateX(100%); }

/* ====================== Layout helpers ====================== */

.section {
  position: relative;
  padding: var(--section-pad) 24px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.section__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float-blob 18s ease-in-out infinite;
}

.blob--a { top: -200px; left: -200px; background: radial-gradient(circle, #2657e6, transparent 70%); }
.blob--b { bottom: -200px; right: -200px; background: radial-gradient(circle, #5e93ff, transparent 70%); animation-delay: -6s; }
.blob--c { top: 30%; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, #1d40c2, transparent 70%); animation-delay: -12s; }

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

.section__header {
  max-width: 800px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-300);
  padding: 6px 14px;
  border: 1px solid rgba(94, 147, 255, 0.25);
  border-radius: 999px;
  background: rgba(94, 147, 255, 0.08);
  margin-bottom: 22px;
}
.eyebrow i {
  font-style: normal;
  color: var(--brand-200);
  opacity: 0.7;
  font-size: 10px;
}

.section__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
}

.section__title span { display: inline; }

.section__lede {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(120deg, #fff 0%, var(--brand-300) 40%, var(--brand-500) 60%, #fff 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

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

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

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(94, 147, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 147, 255, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero__orb--a { width: 520px; height: 520px; top: -10%; left: -10%; background: radial-gradient(circle, #2657e6 0%, transparent 70%); opacity: 0.55; animation: float-blob 20s ease-in-out infinite; }
.hero__orb--b { width: 600px; height: 600px; bottom: -20%; right: -10%; background: radial-gradient(circle, #5e93ff 0%, transparent 70%); opacity: 0.4; animation: float-blob 24s ease-in-out infinite reverse; }
.hero__orb--c { width: 380px; height: 380px; top: 30%; right: 30%; background: radial-gradient(circle, #1d40c2 0%, transparent 70%); opacity: 0.3; animation: float-blob 28s ease-in-out infinite; }

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-family: var(--font-head);
  color: var(--text-soft);
  margin-bottom: 28px;
}

.hero__badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero__badge-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  font-family: "Albert Sans";
  color: var(--brand-300);
}

.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.hero__title.is-in .line > span { transform: translateY(0); }
.hero__title.is-in .line:nth-child(2) > span { transition-delay: 0.1s; }
.hero__title.is-in .line:nth-child(3) > span { transition-delay: 0.2s; }

.hero__subtitle {
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.65;
}

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

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.stat strong .counter {
  font: inherit;
  color: inherit;
}
.stat strong i {
  font-style: normal;
  font-size: 20px;
  font-weight: 500;
  color: var(--brand-300);
  margin-right: 2px;
}
.stat strong em {
  font-style: normal;
  font-size: 18px;
  color: var(--brand-300);
  margin-left: 2px;
}
.stat > span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stat__sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* HERO VISUAL */

.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
}

.globe {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
}

.globe__core {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5e93ff, #1a2e8a 65%, #060a1a 100%);
  box-shadow: inset -30px -30px 60px rgba(0, 0, 0, 0.6),
              inset 30px 30px 60px rgba(94, 147, 255, 0.3),
              0 0 80px rgba(94, 147, 255, 0.45);
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: inset -30px -30px 60px rgba(0,0,0,0.6), inset 30px 30px 60px rgba(94,147,255,0.3), 0 0 80px rgba(94,147,255,0.45); }
  50%      { box-shadow: inset -30px -30px 60px rgba(0,0,0,0.6), inset 30px 30px 60px rgba(94,147,255,0.4), 0 0 130px rgba(94,147,255,0.65); }
}

.globe__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(94, 147, 255, 0.25);
}
.globe__ring--1 { animation: orbit 24s linear infinite; }
.globe__ring--2 { inset: 8%; border-color: rgba(94, 147, 255, 0.15); animation: orbit 32s linear infinite reverse; }
.globe__ring--3 { inset: -8%; border-color: rgba(94, 147, 255, 0.1); animation: orbit 40s linear infinite; }

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.globe__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 60s linear infinite;
  opacity: 0.6;
}

.globe__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-300);
  box-shadow: 0 0 12px rgba(94, 147, 255, 0.9), 0 0 24px rgba(94, 147, 255, 0.5);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  z-index: 10;
  /* Tooltip */
  --tip-opacity: 0;
  --tip-y: 4px;
}

/* Ripple ring */
.globe__dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--brand-300);
  animation: pingDot 2.4s ease-out infinite;
  pointer-events: none;
}

/* Tooltip bubble */
.globe__dot::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(var(--tip-y));
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(8, 12, 30, 0.88);
  border: 1px solid rgba(94, 147, 255, 0.35);
  backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: var(--tip-opacity);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}

.globe__dot:hover,
.globe__dot:focus-visible {
  transform: scale(1.7);
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(94, 147, 255, 0.7);
  --tip-opacity: 1;
  --tip-y: 0px;
  outline: none;
}

.globe__dot--1 { top: 36%; left: 28%; }
.globe__dot--2 { top: 56%; left: 70%; }
.globe__dot--2::after { animation-delay: -0.8s; }
.globe__dot--3 { top: 22%; left: 60%; }
.globe__dot--3::after { animation-delay: -1.6s; }

@keyframes pingDot {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.globe__label {
  position: absolute;
  top: 32%;
  left: 28%;
  transform: translate(-100%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--text-soft);
  background: rgba(8, 12, 30, 0.7);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.globe__label-line {
  width: 24px;
  height: 1px;
  background: var(--brand-400);
}

.floating-card {
  position: absolute;
  background: rgba(10, 14, 35, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 12px;
  font-family: var(--font-head);
  width: 200px;
  z-index: 3;
}

.floating-card--top { top: 4%; right: -2%; animation: floatY 6s ease-in-out infinite; }
.floating-card--bottom { bottom: 6%; left: -8%; animation: floatY 7s ease-in-out infinite reverse; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.floating-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  margin-bottom: 10px;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot--green { background: #34d399; box-shadow: 0 0 8px #34d399; }
.dot--blue  { background: var(--brand-400); box-shadow: 0 0 8px var(--brand-400); }

.floating-card__lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.floating-card__lines span {
  height: 6px;
  background: linear-gradient(90deg, var(--brand-500), transparent);
  border-radius: 3px;
  opacity: 0.6;
}
.floating-card__lines span:nth-child(1) { width: 100%; }
.floating-card__lines span:nth-child(2) { width: 75%; }
.floating-card__lines span:nth-child(3) { width: 50%; }

.floating-card__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
}
.floating-card__bars i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--brand-400), var(--brand-700));
  border-radius: 3px;
  animation: pulseBar 2.5s ease-in-out infinite;
}
.floating-card__bars i:nth-child(2) { animation-delay: 0.15s; }
.floating-card__bars i:nth-child(3) { animation-delay: 0.3s; }
.floating-card__bars i:nth-child(4) { animation-delay: 0.45s; }
.floating-card__bars i:nth-child(5) { animation-delay: 0.6s; }
@keyframes pulseBar {
  0%, 100% { opacity: 0.6; transform: scaleY(0.85); }
  50%      { opacity: 1; transform: scaleY(1); }
}

.floating-card__score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.floating-card__score-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--brand-300));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: pulseScore 3s ease-in-out infinite;
}
.floating-card__score-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 100px;
}
@keyframes pulseScore {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; filter: brightness(1.15); }
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}
.hero__scroll i {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--brand-400), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, transparent, #fff);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { top: -50%; }
  100% { top: 100%; }
}

/* ====================== Ticker ====================== */

.ticker {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 30, 0.5);
  padding: 24px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ticker__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tickerMove 40s linear infinite;
  width: max-content;
}

.ticker__track span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0.85;
}
.ticker__track span:nth-child(even) {
  color: var(--brand-400);
  font-size: 22px;
  opacity: 0.6;
  align-self: center;
}

@keyframes tickerMove {
  to { transform: translateX(-50%); }
}

/* ====================== Plans ====================== */

.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
  transform-style: preserve-3d;
}

.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(94, 147, 255, 0.4) 0%,
    rgba(94, 147, 255, 0.05) 40%,
    transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.plan:hover::before { opacity: 1; }

.plan__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,147,255,0.2), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  top: var(--y, 50%);
  left: var(--x, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.plan:hover .plan__glow { opacity: 1; }

.plan--featured {
  background: linear-gradient(180deg, rgba(94, 147, 255, 0.10), rgba(94, 147, 255, 0.02));
  border-color: rgba(94, 147, 255, 0.35);
  transform: translateY(-8px) scale(1.02);
}
.plan--featured::before { opacity: 1; }
.plan--featured:hover { transform: translateY(-14px) scale(1.02); }

.plan__ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(120deg, var(--brand-500), var(--brand-700));
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 16px -4px rgba(38, 87, 230, 0.5);
}

.plan__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-300);
  padding: 5px 10px;
  border: 1px solid rgba(94, 147, 255, 0.3);
  border-radius: 999px;
  margin-bottom: 14px;
}

.plan__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.plan__desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.plan__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.plan__from {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.plan__amount {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-body);
  color: var(--text);
}
.plan__amount i {
  font-style: normal;
  font-size: 24px;
  color: var(--brand-300);
  font-weight: 500;
}
.plan__amount strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.plan__features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

.plan__features strong { color: var(--text); font-weight: 600; }

.check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(94, 147, 255, 0.12);
  border: 1px solid rgba(94, 147, 255, 0.35);
  position: relative;
  margin-top: 3px;
}
.check::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--brand-300);
  border-bottom: 1.5px solid var(--brand-300);
  transform: rotate(-45deg);
}

.plans__note {
  text-align: center;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 14px;
}
.plans__note a {
  color: var(--brand-300);
  border-bottom: 1px dashed rgba(94, 147, 255, 0.5);
  padding-bottom: 1px;
}
.plans__note a:hover { color: var(--brand-200); }

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

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.service {
  position: relative;
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.5s var(--ease);
  overflow: hidden;
  isolation: isolate;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94, 147, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -1;
}
.service:hover::before { opacity: 1; }
.service:hover { background: rgba(255,255,255,0.02); }

.service__num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--brand-300);
  margin-bottom: 20px;
}

.service__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(94, 147, 255, 0.15), rgba(94, 147, 255, 0.04));
  border: 1px solid rgba(94, 147, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--brand-300);
  margin-bottom: 20px;
  transition: transform 0.5s var(--ease), color 0.3s var(--ease), background 0.4s var(--ease);
}
.service__icon svg { width: 24px; height: 24px; }
.service:hover .service__icon {
  transform: scale(1.05) rotate(-6deg);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
}

.service h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

.service p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ====================== Why a Website ====================== */

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

.why-card {
  position: relative;
  padding: 40px 32px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}

.why-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  width: 200%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 147, 255, 0.18), transparent 50%);
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.why-card:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }
.why-card:hover { border-color: rgba(94, 147, 255, 0.35); }

.why-card__num {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 84px);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff, var(--brand-400));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  line-height: 1;
}
.why-card__num em {
  font-style: normal;
  font-size: 28px;
  margin-left: 4px;
  color: var(--brand-300);
  -webkit-text-fill-color: var(--brand-300);
}
.why-card__infinity {
  font-size: 1.15em;
  line-height: 1;
}

.why-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ====================== About ====================== */

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__sub {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--brand-300);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.about__bio {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.about__signature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.about__signature svg {
  width: 100px;
  height: 30px;
  color: var(--brand-300);
}
.about__signature span {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
}

.about__why {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  color: var(--text);
}
.about__why em {
  font-weight: 300;
  font-style: italic;
  color: var(--brand-300);
}

.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  transition: background 0.4s var(--ease);
  position: relative;
}
.reason:last-child { border-bottom: 1px solid var(--border); }

.reason::before {
  content: "";
  position: absolute;
  left: -16px; right: -16px; top: 0; bottom: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(94,147,255,0.04), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}
.reason:hover::before { opacity: 1; }

.reason__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  color: var(--brand-300);
  letter-spacing: -0.02em;
  opacity: 0.7;
}

.reason h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}

.reason p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

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

.portfolio-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 147, 255, 0.35);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6), var(--glow-soft);
}

/* Image / screenshot area */
.portfolio-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
  flex-shrink: 0;
}

.portfolio-card__screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease);
  display: none; /* hidden until src is filled in */
}
.portfolio-card__screenshot[src]:not([src=""]) {
  display: block;
}
.portfolio-card:hover .portfolio-card__screenshot {
  transform: scale(1.04);
}

/* Placeholder shown when no screenshot yet */
.portfolio-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed rgba(94, 147, 255, 0.25);
  border-radius: 4px;
  margin: 14px;
  color: var(--text-muted);
  transition: opacity 0.3s var(--ease);
}
.portfolio-card__screenshot[src]:not([src=""]) + .portfolio-card__placeholder {
  display: none; /* hide once screenshot is added */
}
.portfolio-card__placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--brand-300);
  opacity: 0.5;
}
.portfolio-card__placeholder span {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
}
.portfolio-card__placeholder em {
  font-style: normal;
  font-size: 11px;
  color: var(--brand-300);
  opacity: 0.6;
  background: rgba(94,147,255,0.08);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(94,147,255,0.2);
}

/* Hover overlay with View Site button */
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 15, 0.75);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__link {
  transform: translateY(8px);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease),
              box-shadow 0.3s var(--ease) !important;
  opacity: 0;
}
.portfolio-card:hover .portfolio-card__link {
  transform: translateY(0);
  opacity: 1;
}

/* Card body */
.portfolio-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.portfolio-card__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.portfolio-card__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.portfolio-card__tags span {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-300);
  background: rgba(94, 147, 255, 0.08);
  border: 1px solid rgba(94, 147, 255, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.examples__caption {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 15px;
}
.examples__caption a {
  color: var(--brand-300);
  border-bottom: 1px dashed rgba(94, 147, 255, 0.4);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease);
}
.examples__caption a:hover { color: var(--brand-200); }

@media (max-width: 1080px) {
  .portfolio__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .portfolio__grid { grid-template-columns: 1fr; }
}

/* ====================== Examples / Compare ====================== */

.compare {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.04);
  user-select: none;
  cursor: ew-resize;
}

.compare__pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.compare__pane--after {
  width: 50%;
  border-right: 2px solid var(--brand-400);
  box-shadow: 4px 0 24px rgba(94, 147, 255, 0.3);
}

.compare__pane--after .mock,
.compare__pane--before .mock {
  position: absolute;
  inset: 0;
  width: max(100%, 1100px);
}

.compare__label {
  position: absolute;
  bottom: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 12, 30, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
}
.compare__label--before { left: 16px; color: #f87171; border-color: rgba(248,113,113,0.3); }
.compare__label--after { right: 16px; color: var(--brand-300); border-color: rgba(94,147,255,0.3); }

.compare__handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 48px;
  display: grid;
  place-items: center;
  z-index: 5;
}
.compare__handle span {
  position: absolute;
  inset: 0;
  width: 2px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-400);
  box-shadow: 0 0 20px rgba(94, 147, 255, 0.5);
}
.compare__handle svg {
  position: relative;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(38, 87, 230, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.3s var(--ease);
}
.compare__handle:hover svg { transform: scale(1.08); }

/* MOCK BEFORE */

.mock {
  height: 100%;
  background: #f1f4f8;
  display: flex;
  flex-direction: column;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #e1e5ed;
  border-bottom: 1px solid #d2d6e0;
  font-size: 11px;
  color: #6b7280;
}
.mock__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd0db;
}
.mock__bar i:nth-child(1) { background: #ef4444; }
.mock__bar i:nth-child(2) { background: #f59e0b; }
.mock__bar i:nth-child(3) { background: #10b981; }
.mock__bar span {
  margin-left: 16px;
  padding: 4px 14px;
  background: #fff;
  border-radius: 6px;
  font-family: var(--font-body);
}

.mock--before .mock__body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.mock__title-bar {
  height: 28px;
  width: 60%;
  background: #4b5563;
  border-radius: 4px;
}
.mock__block {
  height: 14px;
  background: #cbd0db;
  border-radius: 4px;
  width: 100%;
}
.mock__block--wide { width: 80%; }
.mock__block--small { height: 80px; width: 100%; }
.mock__row { display: flex; gap: 16px; }

/* MOCK AFTER */

.mock--after {
  background: linear-gradient(180deg, #050816, #0a1230);
  color: var(--text);
}
.mock--after .mock__bar {
  background: rgba(8, 12, 30, 0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
}
.mock--after .mock__bar span { background: rgba(255,255,255,0.06); color: var(--text); }

.mock__body {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mock__hero {
  position: relative;
  flex: 1;
  border-radius: 14px;
  background: radial-gradient(ellipse at 70% 30%, rgba(94,147,255,0.25), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.mock__hero-title { width: 70%; height: 18px; background: linear-gradient(90deg, #fff, var(--brand-300)); border-radius: 4px; opacity: 0.9; }
.mock__hero-sub   { width: 50%; height: 10px; background: rgba(255,255,255,0.3); border-radius: 4px; }
.mock__hero-cta   { width: 110px; height: 28px; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); border-radius: 999px; margin-top: 8px; box-shadow: 0 6px 16px rgba(38,87,230,0.4); }
.mock__hero-orb   { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #5e93ff, #1a2e8a); box-shadow: 0 0 40px rgba(94,147,255,0.4); }

.mock__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: 110px;
}
.mock__card {
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
}

.examples__caption {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 15px;
}

/* ====================== Contact ====================== */

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact__header { text-align: left; }
.contact__header .eyebrow { margin-bottom: 22px; }
.contact__header .section__title { text-align: left; }

.contact__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact__list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  align-items: center;
}
.contact__list li:last-child { border-bottom: 1px solid var(--border); }

.contact__list-label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__list a {
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.contact__list a:hover { color: var(--brand-300); }

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
}
.field--full { grid-column: 1 / -1; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 22px 16px 12px;
  background: rgba(8, 12, 30, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  appearance: none;
}

.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2390b8ff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
}
.field select option { background: #0a1230; color: var(--text); }
.field select:invalid { color: transparent; }

.field textarea {
  resize: vertical;
  min-height: 140px;
  padding-top: 24px;
}

.field label {
  position: absolute;
  top: 18px;
  left: 17px;
  font-size: 14px;
  font-family: var(--font-head);
  color: var(--text-muted);
  pointer-events: none;
  transition: transform 0.3s var(--ease), font-size 0.3s var(--ease), color 0.3s var(--ease);
  background: transparent;
}
.field label em { color: var(--text-dim); font-style: normal; font-size: 11px; margin-left: 4px; }

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label,
.field__label--static {
  transform: translateY(-12px);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-300);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-500);
  background: rgba(38, 87, 230, 0.08);
}

.field__line {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1px;
  background: var(--brand-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  border-radius: 1px;
}
.field input:focus ~ .field__line,
.field select:focus ~ .field__line,
.field textarea:focus ~ .field__line { transform: scaleX(1); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.contact__success,
.contact__error {
  grid-column: 1 / -1;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  display: none;
}

.contact__success {
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.contact__error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.contact__success.is-visible,
.contact__error.is-visible {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

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

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(8, 12, 30, 0.6));
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__brand .nav__logo { width: 44px; height: 44px; }
.footer__brand strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--text); }
.footer__brand span { display: block; color: var(--text-muted); font-size: 13px; }

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.footer__nav a {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.footer__nav a:hover { color: var(--text); background: var(--surface); }

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-head);
  font-size: 13px;
}
.footer__meta a { color: var(--text); }
.footer__meta a:hover { color: var(--brand-300); }
.footer__meta span { color: var(--text-muted); }

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
}

/* ====================== Reveal animations ====================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ====================== Responsive ====================== */

/* ---- Tablet / small laptop ---- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 400px; margin: 8px auto 0; }
  .nav__links { display: none; }
  .nav { grid-template-columns: auto 1fr auto auto; }
  .nav__toggle { display: block; }
  .plans__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-6px); }
  .why__grid { grid-template-columns: 1fr; gap: 20px; }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .footer__brand, .footer__meta { justify-content: center; align-items: center; flex-direction: row; }
  .contact__header, .contact__header .section__title { text-align: center; }
  .contact__list li { grid-template-columns: 1fr; text-align: center; gap: 4px; padding: 14px 0; }
}

/* ---- Large phone / small tablet ---- */
@media (max-width: 760px) {
  :root { --section-pad: 84px; }
  .section { padding-left: 20px; padding-right: 20px; }
  .nav { padding: 10px 12px 10px 16px; gap: 12px; }
  .nav__name { display: none; }

  .hero { padding: 116px 20px 90px; }
  .hero__title { font-size: clamp(34px, 11vw, 56px); }
  .hero__subtitle { font-size: 16px; }
  .hero__cta { margin-bottom: 40px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }

  /* Stats become a clean 2x2 grid */
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    padding-top: 28px;
  }
  .stat strong { font-size: 24px; }
  .stat__sep { display: none; }

  .section__header { margin-bottom: 48px; }
  .contact__form { padding: 24px; grid-template-columns: 1fr; }
  .ticker__track span { font-size: 22px; }
  .ticker__track span:nth-child(even) { font-size: 18px; }

  /* Keep the hero visual tidy on phones */
  .hero__visual { max-width: 340px; overflow: visible; }
  .floating-card { width: 150px; padding: 10px 12px; font-size: 11px; }
  .floating-card--top { top: 0; right: 0; }
  .floating-card--bottom { bottom: 2%; left: 0; }
  .floating-card__score-num { font-size: 26px; }
}

/* ---- Standard phones ---- */
@media (max-width: 560px) {
  .nav__brand .nav__name { display: none; }
  .btn--small span { display: none; }
  .btn--small { padding: 10px; width: 40px; height: 40px; }

  /* Hide the floating preview cards — they crowd a narrow screen */
  .floating-card { display: none; }
  .hero__visual { max-width: 280px; margin-top: 0; }
  .globe__label { font-size: 11px; padding: 5px 8px; }

  .plan { padding: 30px 22px; }
  .plan__name { font-size: 32px; }
  .plan__amount strong { font-size: 46px; }

  .footer__brand, .footer__meta { flex-direction: column; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; align-items: center; }
}

/* ---- Small phones ---- */
@media (max-width: 400px) {
  :root { --section-pad: 68px; }
  .section { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 104px 16px 72px; }
  .hero__title { font-size: clamp(30px, 10vw, 40px); }
  .hero__badge { font-size: 11px; gap: 6px; padding: 7px 12px; }
  .hero__badge-divider { display: none; }
  .hero__stats { gap: 16px 12px; }
  .stat strong { font-size: 21px; }
  .stat > span { font-size: 11px; }
  .nav { width: calc(100% - 20px); }
}

/* ---- Touch devices: reveal portfolio "View Site" without hover ---- */
@media (hover: none), (pointer: coarse) {
  .portfolio-card__overlay {
    inset: auto 0 0 0;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(4, 6, 15, 0.85));
    padding: 16px;
    place-items: end start;
    opacity: 1;
  }
  .portfolio-card__link { transform: none; opacity: 1; }
  /* Restore hover-driven scale/glow that can't trigger on touch */
  .plan:hover, .why-card:hover, .portfolio-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}

/* ====================== Mobile nav drawer ====================== */

@media (max-width: 1080px) {
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 88px;
    left: 16px;
    right: 16px;
    padding: 16px;
    background: rgba(8, 12, 30, 0.95);
    border: 1px solid var(--border);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    gap: 4px;
    z-index: 99;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .nav__links.is-open a {
    width: 100%;
    padding: 14px 18px;
    justify-content: flex-start;
    font-size: 16px;
  }
}
