:root {
  /* Brand */
  --primary: #6718D9;
  --secondary: #17D3EF;
  --accent: #F219FA;
  --accent-blue: #2176CD;
  --highlight: #DDF4FD;

  /* Dark surfaces */
  --background: #0A0B12;
  --background-variant: #10121E;
  --surface: #181B2B;
  --elevated: #22263A;
  --control: #2A3047;
  --control-active: #3A4566;

  /* Text */
  --primary-text: #F7F8FC;
  --secondary-text: #B4BACC;
  --disabled-text: #6E768C;

  /* UI */
  --icon: #C4C9DC;
  --icon-muted: #9AA1B8;
  --icon-active: #E2E6F5;
  --divider: #363B56;

  /* Semantic */
  --destructive: #3A2630;
  --destructive-icon: #E58B9A;

  /* Layout */
  --content-width: 1180px;
  --content-padding: 28px;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.18);
  --shadow-elevated: 0 24px 80px rgba(0, 0, 0, 0.28);
}


/* =========================================================
   RESET
   ========================================================= */

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

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

body {
  min-height: 100vh;
  margin: 0;

  background:
    radial-gradient(circle at 50% -10%,
      rgba(103, 24, 217, 0.12),
      transparent 42%),
    var(--background);

  color: var(--primary-text);

  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;

  font-size: 16px;
  line-height: 1.6;

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::selection {
  background: rgba(103, 24, 217, 0.45);
  color: var(--primary-text);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

p {
  color: var(--secondary-text);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}


/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */

#main-content {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.container {
  width: min(calc(100% - (var(--content-padding) * 2)),
      var(--content-width));

  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: 120px;
}

.section--compact {
  padding-block: 80px;
}


/* =========================================================
   BACKGROUND / ATMOSPHERE
   ========================================================= */

.ambient-glow {
  position: absolute;
  width: 420px;
  height: 420px;

  border-radius: 50%;

  pointer-events: none;
  filter: blur(100px);

  opacity: 0.16;

  z-index: -1;
}

.ambient-glow--purple {
  background: var(--primary);
}

.ambient-glow--cyan {
  background: var(--secondary);
}

.ambient-glow--pink {
  background: var(--accent);
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--secondary);

  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";

  width: 6px;
  height: 6px;
  font-size: 1.0rem;
  border-radius: 50%;

  background: var(--secondary);

  box-shadow:
    0 0 12px rgba(23, 211, 239, 0.7);
}

.section-title {
  max-width: 780px;

  margin-top: 20px;

  color: var(--primary-text);

  font-size: 3.5rem;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

@media (max-width: 800px) {
  .section-title {
    font-size: 3rem;
    letter-spacing: -0.04em;
  }
}

@media (max-width: 520px) {
  .section-title {
    font-size: 2.5rem;
    letter-spacing: -0.035em;
  }
}

.section-description {
  max-width: 680px;
  margin-top: 22px;

  color: var(--secondary-text);

  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}


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

.button {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 50px;
  padding: 0 22px;

  border-radius: var(--radius-pill);

  font-size: 0.95rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 220ms var(--ease-standard),
    box-shadow 220ms var(--ease-standard),
    background 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 4px;
}

.button--primary {
  color: #FFFFFF;

  background:
    linear-gradient(135deg,
      var(--primary),
      var(--accent-blue));

  box-shadow:
    0 10px 30px rgba(103, 24, 217, 0.28);
}

.button--primary:hover {
  box-shadow:
    0 14px 38px rgba(103, 24, 217, 0.38);
}

.button--secondary {
  color: var(--primary-text);

  background: rgba(42, 48, 71, 0.72);

  border: 1px solid rgba(255, 255, 255, 0.07);
}

.button--secondary:hover {
  background: var(--control-active);
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
  background:
    linear-gradient(145deg,
      rgba(34, 38, 58, 0.72),
      rgba(24, 27, 43, 0.72));

  border: 1px solid rgba(255, 255, 255, 0.055);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-soft);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}


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

.reveal {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity 800ms var(--ease-standard),
    transform 800ms var(--ease-standard);
}

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


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {
  :root {
    --content-padding: 20px;
  }

  .section {
    padding-block: 88px;
  }

  .section--compact {
    padding-block: 64px;
  }

  .section-title {
    font-size: 3.5rem;
    letter-spacing: -0.04em;
  }
}

@media (max-width: 520px) {
  :root {
    --content-padding: 16px;
  }

  .section {
    padding-block: 72px;
  }

  .section-description {
    line-height: 1.65;
  }

  .button {
    width: 100%;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .philosophy__content h2 {
  color: var(--primary-text) !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

html[dir="rtl"] .section-description {
  line-height: 1.9 !important;
}

html[dir="rtl"] .hero__title {
  letter-spacing: 0;
  line-height: 1.15;
}

html[dir="rtl"] .hero__title span {
  line-height: inherit;
}

html .hero__title span {
  line-height: inherit;
}

html[dir="rtl"] .final-cta__content h2 {
  letter-spacing: 0;
  line-height: 1.2;
}

html[dir="rtl"] .final-cta__content h2 span {
  line-height: 1.2;
  padding-bottom: 0.3em;
}

html .final-cta__content h2 span {
  line-height: 1.2;
  padding-bottom: 0.3em;
}