/* =========================================================================
   DARSLY — Landing Page Styles
   Design system: futuristic glassmorphism, iridescent gradients, rounded type
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colors */
  --bg: #0a0f1f;
  --bg-soft: #0e1528;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f6fb;
  --text-muted: #b7bfd4;
  --text-dim: #7e8aa3;
  --track: rgba(255, 255, 255, 0.08);

  --purple: #8a2be2;
  --teal: #00ced1;
  --pink: #e0449b;
  --blue: #4a6cf7;

  --grad: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
  --grad-soft: linear-gradient(135deg, rgba(138, 43, 226, 0.35), rgba(0, 206, 209, 0.35));

  /* Typography */
  --font-heading-en: "Poppins", "Quicksand", sans-serif;
  --font-body-en: "Quicksand", "Nunito", sans-serif;
  --font-heading-ar: "Cairo", "Tajawal", sans-serif;
  --font-body-ar: "Tajawal", "Cairo", sans-serif;

  /* Layout */
  --container: 1140px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);

  /* Buttons — serious monochrome */
  --btn-bg: #ffffff;
  --btn-bg-hover: #e7eaf1;
  --btn-text: #0a0f1f;
  --btn-shadow: rgba(255, 255, 255, 0.14);
}

/* Font family swap based on language */
html[lang="en"] {
  --font-heading: var(--font-heading-en);
  --font-body: var(--font-body-en);
}

html[lang="ar"] {
  --font-heading: var(--font-heading-ar);
  --font-body: var(--font-body-ar);
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --bg: #f5f7fc;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.65);
  --surface-hover: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.22);
  --text: #12182b;
  --text-muted: #4a5570;
  --text-dim: #8a93a8;
  --track: rgba(15, 23, 42, 0.08);

  --grad-soft: linear-gradient(135deg, rgba(138, 43, 226, 0.14), rgba(0, 206, 209, 0.16));
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.1);

  /* Buttons — inverted for light theme */
  --btn-bg: #0f172a;
  --btn-bg-hover: #1e293b;
  --btn-text: #ffffff;
  --btn-shadow: rgba(15, 23, 42, 0.28);
}

/* Theme-aware background wash (overrides body::before) */
[data-theme="light"] body::before {
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(138, 43, 226, 0.1), transparent 60%),
    radial-gradient(1000px 700px at 10% 20%, rgba(0, 206, 209, 0.1), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(74, 108, 247, 0.08), transparent 55%),
    var(--bg);
}

[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .site-footer {
  background: rgba(255, 255, 255, 0.6);
}

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

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

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

/* Radial gradient wash for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(138, 43, 226, 0.22), transparent 60%),
    radial-gradient(1000px 700px at 10% 20%, rgba(0, 206, 209, 0.16), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(74, 108, 247, 0.18), transparent 55%),
    var(--bg);
  transition: background 1.2s ease;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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%;
}

::selection {
  background: rgba(138, 43, 226, 0.45);
  color: #fff;
}

/* ---------- Background canvas ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Floating glassmorphic shapes ---------- */
.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0.5;
  filter: blur(1px);
  will-change: transform;
}

.bg-shape--1 {
  width: 280px;
  height: 280px;
  top: 12%;
  left: 6%;
}

.bg-shape--2 {
  width: 180px;
  height: 180px;
  top: 8%;
  right: 10%;
}

.bg-shape--3 {
  width: 320px;
  height: 320px;
  bottom: 8%;
  right: 4%;
}

.bg-shape--4 {
  width: 160px;
  height: 160px;
  bottom: 30%;
  left: 12%;
}

.bg-shape--5 {
  width: 120px;
  height: 120px;
  top: 48%;
  left: 46%;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(0, 206, 209, 0.7);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 18px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 15, 31, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand__name {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: right 0.3s var(--ease-out);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  right: 0;
}

/* Language toggle */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-muted);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.12);
}

.theme-toggle:active {
  transform: scale(0.92);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .icon-sun {
  display: block;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lang-toggle:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.12);
}

.lang-toggle__opt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: color 0.3s ease, background 0.3s ease;
}

.lang-toggle__opt.is-active {
  color: #fff;
  background: black;
}

.lang-toggle__divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* ---------- Sections (shared) ---------- */
section {
  position: relative;
  padding: 110px 0;
  scroll-margin-top: 80px;
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 18px;
}

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--text-muted);
  font-size: 1.12rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 0 120px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__eyebrow {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.08;
  margin-bottom: 26px;
}

.hero__title-line {
  display: block;
}

.hero__title-line--gradient {
  background: black;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 24px rgba(138, 43, 226, 0.35));
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Hero CTA form */
.hero__cta {
  display: none;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.field {
  position: relative;
  flex: 1;
}

.field__input {
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.field__input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 206, 209, 0.16), 0 0 30px rgba(0, 206, 209, 0.2);
}

.field__input.invalid {
  border-color: #ff5f7a;
  box-shadow: 0 0 0 4px rgba(255, 95, 122, 0.16);
}

.field__label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
  background: transparent;
  padding: 0 4px;
  font-size: 1rem;
}

html[dir="rtl"] .field__label {
  left: auto;
  right: 20px;
}

.field__input:focus~.field__label,
.field__input:not(:placeholder-shown)~.field__label {
  top: 0;
  transform: translateY(-50%) scale(0.82);
  background: var(--bg);
  color: var(--teal);
  border-radius: 6px;
  padding: 0 8px;
}

.hero__cta-note {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.88rem;
  min-height: 1.4em;
  transition: color 0.3s ease;
}

.hero__cta-note.success {
  color: var(--teal);
}

.hero__cta-note.error {
  color: #ff5f7a;
}

.hero__secondary {
  margin-top: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 17px 30px;
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease;
  will-change: transform;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: 0 12px 30px var(--btn-shadow);
  white-space: nowrap;
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--btn-bg-hover);
  box-shadow: 0 16px 40px var(--btn-shadow);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
}

.btn--ghost:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--surface-hover);
  border-color: var(--text);
  box-shadow: 0 12px 30px var(--shadow-soft);
}

.btn__arrow {
  transition: transform 0.3s var(--ease-out);
  display: inline-block;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

html[dir="rtl"] .btn:hover .btn__arrow {
  transform: translateX(-4px);
}

.btn:hover .btn__arrow--down {
  transform: translateY(4px);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-hint__mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  position: relative;
}

.scroll-hint__mouse::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--grad);
  animation: scroll-wheel 1.8s infinite;
}

@keyframes scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(14px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

/* ---------- Problem section ---------- */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* ---------- Stat cards ---------- */
.stat-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.stat-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--grad-soft);
  color: var(--teal);
  border: 1px solid var(--border);
}

.stat-card__icon svg {
  width: 30px;
  height: 30px;
}

.stat-card__title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.stat-card__text {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Solution section ---------- */
.solution__graph {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 8px;
}

.graph__labels {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.graph__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--track);
  overflow: visible;
}

.graph__line {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--grad);
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 16px rgba(0, 206, 209, 0.6);
}

html[dir="rtl"] .graph__line {
  transform-origin: right center;
}

.graph__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal);
  box-shadow: 0 0 20px rgba(0, 206, 209, 0.8);
}

html[dir="rtl"] .graph__dot {
  left: auto;
  right: 0;
  margin: -11px -11px 0 0;
}

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

/* ---------- Stage cards ---------- */
.stage-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
  overflow: hidden;
}

.stage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.stage-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.stage-card:hover::before {
  opacity: 1;
}

.stage-card__badge {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
}

html[dir="rtl"] .stage-card__badge {
  right: auto;
  left: 20px;
}

.stage-card__art {
  position: relative;
  height: 160px;
  margin-bottom: 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--track);
}

.stage-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.stage-card:hover .stage-card__art img {
  transform: scale(1.06);
}

.stage-card__title {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.stage-card__list {
  list-style: none;
  position: relative;
}

.stage-card__list li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--text-muted);
  font-size: 0.97rem;
}

html[dir="rtl"] .stage-card__list li {
  padding: 8px 26px 8px 0;
}

.stage-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--grad);
}

html[dir="rtl"] .stage-card__list li::before {
  left: auto;
  right: 0;
}

/* ---------- Features section ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  color: var(--purple);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out), color 0.3s ease;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card:hover .feature-card__icon {
  transform: rotate(-8deg) scale(1.08);
  color: var(--teal);
}

.feature-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---------- Contact section ---------- */
.contact__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.contact-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--grad);
  color: #fff;
  transition: transform 0.4s var(--ease-out);
}

.contact-card__icon svg {
  width: 28px;
  height: 28px;
}

.contact-card:hover .contact-card__icon {
  transform: scale(1.1) rotate(-6deg);
}

.contact-card__label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-card__email {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  word-break: break-all;
  transition: color 0.3s ease;
}

.contact-card:hover .contact-card__email {
  color: var(--teal);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: rgba(10, 15, 31, 0.5);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__copy {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.site-footer__links {
  display: flex;
  gap: 22px;
}

.site-footer__links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.site-footer__links a:hover {
  color: var(--teal);
}

/* ---------- Reveal base states (Intersection Observer) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

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

/* Split text letters (GSAP hero) */
.hero__title-line .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {

  .problem__grid,
  .solution__stages {
    grid-template-columns: 1fr;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  section {
    padding: 80px 0;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .contact__cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 140px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-hint__mouse::after {
    animation: none;
  }
}