/* ---- Theme tokens: light SaaS ---- */
:root {
  color-scheme: light;
  --page-bg: linear-gradient(150deg, #fdfefe 0%, #ffffff 48%, #f4f7ff 100%);
  --page-accent: radial-gradient(820px 820px at 20% 0%, rgba(111,168,255,0.12), transparent 70%),
    radial-gradient(920px 720px at 80% 18%, rgba(97,177,255,0.1), transparent 75%);
  --surface: #ffffff;
  --surface-soft: rgba(255,255,255,0.92);
  --surface-muted: rgba(255,255,255,0.65);
  --border: rgba(24,63,119,0.08);
  --border-strong: rgba(24,63,119,0.16);
  --text: #556176;
  --heading: #132238;
  --muted: #8893a6;
  --brand: #2563eb;
  --brand-soft: rgba(37,99,235,0.12);
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  --shadow-soft: 0 20px 60px rgba(24,70,122,0.12);
  --shadow-hover: 0 32px 90px rgba(24,70,122,0.2);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --space-1: 0.35rem;
  --space-2: 0.6rem;
  --space-3: 0.85rem;
  --space-4: 1.25rem;
  --space-5: 1.8rem;
  --space-6: 2.6rem;
  --space-7: 4rem;
  --container: min(100% - 3rem, 1080px);
  --transition: cubic-bezier(.21,.7,.3,1);
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font: 500 16px/1.65 "Inter", "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: -20vh -20vw;
  z-index: -1;
  background: var(--page-accent);
  opacity: 0.75;
  filter: blur(90px);
  pointer-events: none;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-7);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

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

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

a:hover {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  translate: 0 -200%;
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: translate 0.25s ease;
  z-index: 999;
}

.skip-link:focus {
  translate: 0 0;
}

.h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--heading);
}

.h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--heading);
}

.h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--heading);
}

.lead {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--heading);
}

.hero-lead {
  color: color-mix(in srgb, var(--muted) 92%, rgba(0, 0, 0, 0.2));
  font-weight: 400;
}

.muted {
  margin: 0;
  color: color-mix(in srgb, var(--muted) 82%, rgba(4, 17, 32, 0.4));
  font-weight: 400;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(6, 21, 45, 0.55);
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  color: transparent;
}

section {
  position: relative;
  padding: var(--space-7) 0;
  text-align: center;
}

main .section {
  margin-bottom: var(--space-7);
}

main .section:last-of-type {
  margin-bottom: 0;
}

.section-head {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  max-width: 640px;
  margin-inline: auto;
}

.cards,
.content-grid,
.pricing-grid {
  display: grid;
  gap: var(--space-5);
  justify-items: center;
}

.cards {
  width: min(100%, 880px);
  margin-inline: auto;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--transition),
    box-shadow 0.35s var(--transition),
    border-color 0.3s ease,
    background 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.95));
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.14);
  transition: transform 0.25s var(--transition),
    box-shadow 0.25s var(--transition),
    background 0.25s ease,
    color 0.25s ease;
}

.btn.primary {
  background: var(--brand-gradient);
  color: #ffffff;
}

.btn.ghost {
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--heading);
  font-size: 0.95rem;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--brand);
  background: rgba(37, 99, 235, 0.08);
  transition: transform 0.25s var(--transition),
    box-shadow 0.25s var(--transition),
    background-color 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: rgba(37, 99, 235, 0.18);
}

.lang-switch {
  position: fixed;
  right: clamp(1rem, 4vw, 2.6rem);
  bottom: clamp(1rem, 4vw, 2.6rem);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.45rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(24, 63, 119, 0.18);
  z-index: 95;
  backdrop-filter: blur(14px);
}

.lang-btn {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s var(--transition);
}

.lang-btn:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand);
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.lang-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* ---- Hero ---- */
.hero .container {
  display: grid;
  gap: var(--space-6);
  justify-items: center;
}

.hero-content {
  max-width: 640px;
  display: grid;
  gap: var(--space-4);
  justify-items: center;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -24% -18%;
  background: var(--brand-gradient);
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
}

.hero-frame {
  position: relative;
  width: min(260px, 65vw);
  aspect-ratio: 1 / 1;
  border-radius: 36px;
  padding: 1.1rem;
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.18), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  z-index: 1;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.35);
  z-index: -1;
  filter: blur(22px);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(24, 70, 122, 0.18);
  border: 5px solid var(--surface);
}

/* ---- Social ---- */
.social-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 760px);
  column-gap: calc(var(--space-6) * 1.55);
  row-gap: var(--space-5);
  justify-items: stretch;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  text-align: center;
  padding-inline: var(--space-4);
}

.social-grid .link-card {
  width: 100%;
  max-width: 360px;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (min-width: 960px) {
  .social-grid .link-card {
    max-width: none;
  }
}

.social-grid .link-card:hover {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.social-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
  transition: transform 0.35s var(--transition),
    box-shadow 0.35s var(--transition),
    background 0.3s ease;
}

.social-icon img {
  width: 34px;
  height: 34px;
}

.link-card:hover .social-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.25);
  background: var(--brand-gradient);
}

.link-card:hover .h5 {
  color: var(--brand);
}

/* ---- Videos ---- */
.video-grid {
  display: grid;
  gap: var(--space-5);
  width: min(100%, 960px);
  margin-inline: auto;
}

.extra-spacing {
  margin-bottom: var(--space-5);
}
.video-card {
  display: grid;
  gap: var(--space-4);
  width: 100%;
}

@media (min-width: 720px) {
  .video-card {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-6);
  }
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-meta {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  text-align: left;
}

.video-meta .actions {
  justify-content: center;
  justify-self: center;
}

@media (min-width: 720px) {
  .video-meta .actions {
    justify-content: flex-start;
    justify-self: start;
  }
}

/* ---- Portfolio / Pricing ---- */
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: min(100%, 760px);
  margin-inline: auto;
}

.pricing-card {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  text-align: center;
}

.pricing-card .price {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}

.pricing-card .features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 400;
}

.pricing-card .features li {
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.06);
}

/* ---- Footer ---- */
.site-footer {
  padding: var(--space-6) 0;
  color: var(--muted);
}

.site-footer .container {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
}

/* ---- Reveal animations ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.05s var(--transition),
    transform 1.05s var(--transition);
  will-change: transform, opacity;
}

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

.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--transition),
    transform 0.9s var(--transition);
  transition-delay: calc(var(--reveal-index, 0) * 0.12s);
  will-change: transform, opacity;
}

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

/* ---- Responsive tweaks ---- */
@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --container: min(100% - 2.4rem, 1080px);
  }

  .hero-frame {
    width: min(220px, 70vw);
  }
}

@media (max-width: 640px) {
  :root {
    --space-7: 3.2rem;
  }

  .cards {
    gap: var(--space-3);
  }

  .card {
    padding: var(--space-4);
  }

  .pricing-card .price {
    font-size: 1.8rem;
  }
}

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

  [data-animate],
  .reveal-child {
    opacity: 1 !important;
    transform: none !important;
  }
}

::selection {
  background: rgba(37, 99, 235, 0.3);
  color: var(--heading);
}
