/* ====== CSS VARIABLES & BASE ====== */

:root {
  --bg-main: #050014;
  --bg-alt: #0d041f;
  --bg-card: #14082e;
  --bg-card-soft: #1e0b40;

  --cluster-purple: #a855f7;
  --cluster-violet: #7c3aed;
  --cluster-pink: #ec4899;
  --cluster-blue: #22d3ee;
  --cluster-amber: #f59e0b;
  --cluster-green: #22c55e;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.32);

  --accent: var(--cluster-purple);
  --accent-soft: rgba(168, 85, 247, 0.18);

  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.75);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.55);

  --nav-height: 72px;
}

/* Global reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #3b0764, transparent 55%),
    radial-gradient(circle at bottom right, #0f172a, transparent 50%), var(--bg-main);
  overflow-x: hidden;
}

/* Layout */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Background orbs for color clusters */

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.19;
  z-index: -1;
  pointer-events: none;
  animation: orbFloat 22s ease-in-out infinite alternate;
}

.orb--one {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--cluster-purple), transparent 60%);
  top: -60px;
  left: -80px;
}

.orb--two {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--cluster-pink), transparent 60%);
  bottom: -100px;
  right: -140px;
  animation-delay: -6s;
}

.orb--three {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--cluster-blue), transparent 60%);
  top: 40%;
  right: 20%;
  animation-delay: -12s;
}

@keyframes orbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(30px, -30px, 0) scale(1.1);
  }
}

/* Typography */

h1,
h2,
h3 {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Sections */

.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Eyebrow */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--cluster-blue);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Accent text */

.accent-text {
  background: linear-gradient(120deg, var(--cluster-purple), var(--cluster-pink), var(--cluster-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ====== HEADER & NAV ====== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 0, 20, 0.98), rgba(5, 0, 20, 0.78), transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(148, 163, 184, 0.35);
  background: rgba(5, 0, 20, 0.97);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Logo */

.logo {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
}

.logo span {
  color: var(--cluster-purple);
}

/* Nav links */

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.1rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(120deg, var(--cluster-purple), var(--cluster-pink));
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

/* ====== BUTTONS ====== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease,
    color 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at 0% 0%, var(--cluster-amber), var(--cluster-purple));
  color: #020617;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 22px 60px rgba(168, 85, 247, 0.9);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: var(--cluster-purple);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--cluster-purple);
  background: rgba(15, 23, 42, 0.9);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
}

.btn-whatsapp:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.5);
}

.btn-full {
  width: 100%;
}

/* WhatsApp logo (pure CSS) */

.wa-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f9fafb;
  position: relative;
  flex-shrink: 0;
}

.wa-logo::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 11px;
  height: 9px;
  border-radius: 7px 7px 7px 2px;
  border: 2px solid #16a34a;
  border-top-color: #16a34a;
  transform: rotate(16deg);
}

.wa-logo::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 4px;
  border: 2px solid #16a34a;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(24deg);
}

/* ====== HERO ====== */

.hero {
  padding-top: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.05fr);
  gap: 3.1rem;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.hero-subtitle {
  margin-top: 0.8rem;
  margin-bottom: 1.3rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

/* Modifier */
.hero-actions--left {
  justify-content: flex-start;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 1rem;
}

.stat {
  min-width: 110px;
}

.stat-value {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-trust {
  font-size: 0.82rem;
  color: var(--cluster-blue);
}

/* Hero visual card */

.hero-visual {
  display: flex;
  justify-content: center;
}

.device-card {
  width: 100%;
  max-width: 430px;
  border-radius: 1.7rem;
  background: radial-gradient(circle at top left, rgba(59, 7, 100, 0.9), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
  position: relative;
}

.device-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--red {
  background: #f97373;
}

.dot--yellow {
  background: #facc15;
}

.dot--green {
  background: #4ade80;
}

.device-label {
  margin-left: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.device-body {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 1rem;
  padding: 1.1rem 1rem 1.2rem;
}

/* Device main */

.device-main {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.now-playing {
  padding: 0.85rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(168, 85, 247, 0.38));
  box-shadow: 0 12px 22px rgba(59, 130, 246, 0.4);
}

.now-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(15, 23, 42, 0.95);
  font-weight: 600;
}

.now-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.now-meta {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.8);
}

/* Signal */

.signal-card {
  padding: 0.7rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.signal-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.signal-bars {
  display: inline-flex;
  gap: 3px;
  margin: 0.4rem 0;
}

.signal-bars span {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--cluster-green), #a7f3d0);
  animation: barsPulse 1.1s ease-in-out infinite alternate;
}

.signal-bars span:nth-child(1) {
  height: 10px;
  animation-delay: 0s;
}

.signal-bars span:nth-child(2) {
  height: 14px;
  animation-delay: 0.1s;
}

.signal-bars span:nth-child(3) {
  height: 18px;
  animation-delay: 0.2s;
}

.signal-bars span:nth-child(4) {
  height: 24px;
  animation-delay: 0.3s;
}

.signal-status {
  font-size: 0.75rem;
  color: #bbf7d0;
}

@keyframes barsPulse {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-3px);
  }
}

/* Tag cloud */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.7);
}

.tag--sport {
  border-color: rgba(34, 197, 94, 0.7);
}

.tag--movie {
  border-color: rgba(248, 113, 113, 0.7);
}

.tag--series {
  border-color: rgba(59, 130, 246, 0.7);
}

.tag--kids {
  border-color: rgba(244, 114, 182, 0.7);
}

/* Device sidebar */

.device-sidebar {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.3rem;
  padding: 0.8rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.device-status {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 0.4rem;
  display: inline-block;
}

.device-status--online {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.28);
}

.device-status--idle {
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
}

.sidebar-foot {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ====== FEATURES (What is iptvspainpro) ====== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: radial-gradient(circle at top center, rgba(148, 163, 184, 0.16), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.7);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====== PRICING (ROYAL SIMPLE) ====== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

/* Card base */
.pricing-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 2rem 1.8rem;
  text-align: center; /* ✅ الكتابة في الوسط */

  background: rgba(10, 14, 26, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);

  box-shadow:
    0 18px 45px rgba(2, 6, 23, 0.60),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

/* Premium subtle shine (very controlled) */
.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 220px at 20% 0%, rgba(168, 85, 247, 0.14), transparent 60%),
    radial-gradient(700px 200px at 85% 15%, rgba(56, 189, 248, 0.08), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(148, 163, 184, 0.36);
  box-shadow:
    0 26px 70px rgba(2, 6, 23, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Highlight (Most popular): royal purple ring + glow */
.pricing-card--highlight {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow:
    0 28px 85px rgba(168, 85, 247, 0.18),
    0 20px 55px rgba(2, 6, 23, 0.70),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Purple aura behind highlight card (luxury, not noisy) */
.pricing-card--highlight::after {
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at 50% 20%, rgba(168, 85, 247, 0.35), transparent 55%);
  filter: blur(30px);
  opacity: 0.75;
  pointer-events: none;
}

/* --- Ribbon: subtle purple (not gold) --- */
.ribbon {
  position: absolute;
  top: 14px;
  right: -52px;
  width: 190px;

  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  padding: 0.5rem 0.6rem;
  color: rgba(248, 250, 252, 0.92);

  background: linear-gradient(135deg,
    rgba(168, 85, 247, 0.95),
    rgba(124, 58, 237, 0.95)
  );

  transform: rotate(35deg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

/* Badge (optional if you keep it) */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;

  color: rgba(226, 232, 240, 0.92);
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.badge--hot {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.45);
}

/* Title */
.pricing-card h3 {
  font-size: 1.28rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

/* Small line under title */
.plan-note {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.72);
  margin-bottom: 1.05rem;
}

/* Price */
.price {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2.35rem;
  font-weight: 750;
  margin: 0.55rem 0 0.15rem;
  letter-spacing: -0.02em;
}

.price span {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.70);
  margin-left: 0.35rem;
}

/* List: center-friendly */
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 1.8rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.78);
}

/* Keep bullets aligned nicely even with centered text */
.pricing-list li {
  display: flex;
  justify-content: center; /* ✅ يجعل السطر كله وسط */
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.pricing-list li::before {
  content: "✓";
  color: rgba(168, 85, 247, 0.95); /* ✅ نكهة بنفسجية بدل الأخضر */
  font-size: 0.95rem;
}

/* Buttons: premium only inside pricing */
#pricing .btn {
  display: inline-block;
  border-radius: 999px;
}

/* Make highlight button feel “royal” without breaking global btn styles */
.pricing-card--highlight .btn.btn-primary {
  background: linear-gradient(135deg,
    rgba(168, 85, 247, 0.95),
    rgba(124, 58, 237, 0.95)
  );
  box-shadow: 0 18px 45px rgba(168, 85, 247, 0.22);
}

.pricing-card--highlight .btn.btn-primary:hover {
  box-shadow: 0 24px 60px rgba(168, 85, 247, 0.28);
}

/* ====== PRO PLAN – EXECUTIVE TOUCH ====== */

.pricing-card--pro {
  border-color: rgba(168, 85, 247, 0.28);
  box-shadow:
    0 18px 45px rgba(2, 6, 23, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Elegant top accent line */
.pricing-card--pro::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 85, 247, 0.55),
    transparent
  );
}

/* Subtle VIP glow (very restrained) */
.pricing-card--pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 200px at 50% 0%,
    rgba(168, 85, 247, 0.12),
    transparent 65%
  );
  opacity: 0.5;
  pointer-events: none;
}

/* Optional: make Pro button feel executive */
.pricing-card--pro .btn {
  border-color: rgba(168, 85, 247, 0.45);
}

.pricing-card--pro .btn:hover {
  box-shadow: 0 12px 35px rgba(168, 85, 247, 0.18);
}



/* ====== INSTALLATION STEPS ====== */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.1rem 1.1rem 0.2rem;
  border-radius: 1.2rem;
}

.step + .step {
  margin-top: 0.3rem;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  background: radial-gradient(circle at top left, var(--cluster-purple), var(--cluster-pink));
  color: #020617;
  box-shadow: 0 10px 26px rgba(168, 85, 247, 0.8);
}

.step-content h3 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.step-content p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ====== FAQ ====== */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 0.9rem 1rem;
  background: transparent;
  border: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-size: 0.92rem;
}


.faq-icon {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}


.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}


.faq-answer {
  padding: 0 1rem;
  padding-bottom: 0.9rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}


.faq-answer[hidden] {
  display: none;
}


/* ====== BLOG ====== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.blog-card {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  overflow: hidden;
}

.blog-thumb {
  height: 120px;
  background: radial-gradient(circle at top left, var(--cluster-purple), transparent 58%);
}

.blog-thumb--pink {
  background: radial-gradient(circle at top left, var(--cluster-pink), transparent 58%);
}

.blog-thumb--blue {
  background: radial-gradient(circle at top left, var(--cluster-blue), transparent 58%);
}

.blog-content {
  padding: 1rem 1rem 1.1rem;
}

.blog-content h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.blog-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--cluster-blue);
}

.blog-link::after {
  content: "↗";
  font-size: 0.9rem;
}

/* ====== CONTACT ====== */

.section--contact {
  padding-bottom: 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.contact-note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Contact form */

.contact-form {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}

.form-row label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

input,
select,
textarea {
  font: inherit;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.8);
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.55rem 0.7rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cluster-purple);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.6);
  background: rgba(15, 23, 42, 0.95);
}

textarea {
  resize: vertical;
}

.form-disclaimer {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ====== FOOTER ====== */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.6rem 0 2.2rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(5, 0, 20, 1));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.footer-text {
  margin-top: 0.4rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 380px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  font-size: 0.84rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-meta {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.9);
}

/* ====== REVEAL ANIMATION ====== */

[data-reveal],
[data-counter] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.is-visible[data-reveal],
.is-visible[data-counter] {
  opacity: 1;
  transform: translateY(0);
}

/* ====== RESPONSIVE ====== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 1.5rem, 640px);
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 3.5rem;
  }

  /* Mobile nav visible */
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 1.25rem;
    top: calc(var(--nav-height) + 0.5rem);
    flex-direction: column;
    padding: 0.7rem 0.9rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 1);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(18px);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-links a {
    padding-block: 0.35rem;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    gap: 1.1rem;
  }

  .device-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    text-align: left;
  }
}

/* Fix big gap under "works-in-spain" section */
#works-in-spain.section {
  padding-top: 2.5rem;    
  padding-bottom: 2.5rem;  
}


#works-in-spain .section-header {
  margin-bottom: 0;
}


#works-in-spain .section-subtitle {
  margin-bottom: 1rem;
}

/* ===== Prose (Typography for pages/posts content) ===== */
.prose {
  line-height: 1.8;
  color: var(--text-main);
  font-size: 1rem;
}

.prose h2, .prose h3, .prose h4 {
  margin: 1.4rem 0 0.6rem;
}

.prose p {
  margin: 0.9rem 0;
  color: rgba(226,232,240,0.88);
}

.prose a {
  color: var(--cluster-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul, .prose ol {
  margin: 0.9rem 0 0.9rem 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
  color: rgba(226,232,240,0.88);
}

.prose strong {
  color: var(--text-main);
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid rgba(168,85,247,0.8);
  background: rgba(15,23,42,0.7);
  border-radius: 0.75rem;
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(148,163,184,0.3);
  margin: 1.6rem 0;
}

.page-shell { padding-top: 3.5rem; }
.page-container { max-width: 900px; }

.breadcrumbs{
  font-size: .85rem;
  color: rgba(226,232,240,.75);
  margin: 0 0 1rem;
}
.breadcrumbs a{ color: var(--cluster-blue); }
.breadcrumbs-current{ color: var(--text-main); }

.page-header{
  text-align:left;
  margin-bottom: 1.2rem;
}
.page-title{ margin: .4rem 0 .4rem; }
.page-excerpt{
  color: var(--text-muted);
  line-height: 1.7;
  margin: .35rem 0 0;
}
.page-meta{
  margin-top: .75rem;
  font-size: .85rem;
  color: rgba(226,232,240,.7);
}

.page-featured{ margin: 1.2rem 0 1.6rem; }
.page-featured-img{
  width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
}
.page-edit{ margin-top: 1.5rem; }
.page-links{ margin-top: 1rem; }

.post-shell { padding-top: 3.5rem; }
.post-container { max-width: 820px; }

.post-header { text-align: left; margin-bottom: 1.25rem; }
.post-title { margin: .45rem 0 .6rem; }

.post-meta{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  color: rgba(226,232,240,.7);
  font-size: .9rem;
}
.post-meta-sep{ opacity: .7; }

.post-featured{ margin: 1.2rem 0 1.6rem; }
.post-featured-img{
  width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
}

.post-footer{ margin-top: 2rem; }
.post-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1rem;
}

.post-nav{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: .95rem;
}
.post-nav a{ color: var(--cluster-blue); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 12px;
  background: #000;
  color: #fff;
  z-index: 9999;
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
}

.section--blog {
  padding-top: 3.5rem;
}

.pagination-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.post-nav-item--right { text-align: right; }

.section--404 {
  text-align: center;
}

.error-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.error-help {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.error-help ul {
  list-style: none;
  padding: 0;
}

.error-help li {
  margin: 0.4rem 0;
}



