/* SMARTSCALE shared design system */
:root {
  --ink: #0a1324;
  --muted: #5f6f8d;
  --line: rgba(10, 19, 36, 0.1);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --primary: #145fff;
  --primary-deep: #0f48bf;
  --teal: #27c6aa;
  --soft-shadow: 0 16px 36px rgba(11, 28, 58, 0.1);
  --hard-shadow: 0 34px 72px rgba(7, 20, 48, 0.15);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --max: 1180px;
}

/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 620px at -10% -10%, #deebff 0%, transparent 65%),
    radial-gradient(900px 520px at 112% 0%, #d8fff6 0%, transparent 62%),
    linear-gradient(180deg, #f8fbff 0%, #f1f6ff 44%, #fbfdff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.55s ease;
}

body.page-ready {
  opacity: 1;
}

body.page-leaving {
  opacity: 0;
}

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

a {
  color: inherit;
}

/* Ambient visual layers */
.ambient {
  position: fixed;
  inset: -22vmax;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(35vmax 35vmax at 18% 30%, rgba(20, 95, 255, 0.14), transparent 64%),
    radial-gradient(30vmax 30vmax at 82% 10%, rgba(39, 198, 170, 0.16), transparent 64%);
  transition: transform 0.2s linear;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.11;
  background-image: radial-gradient(rgba(10, 19, 36, 0.23) 0.6px, transparent 0.6px);
  background-size: 3.1px 3.1px;
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
}

/* Layout primitives */
.container {
  width: min(calc(100% - 2.2rem), var(--max));
  margin-inline: auto;
}

.section {
  padding: 5.6rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 95, 255, 0.18), transparent);
  pointer-events: none;
}

.display {
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  font-weight: 700;
  color: #4e6592;
}

.page-title {
  margin-top: 0.62rem;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
}

.hero-title {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
  max-width: 12ch;
}

.gradient-text {
  background: linear-gradient(104deg, var(--primary), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 252, 255, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 19, 36, 0.08);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.66rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 1.02rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--primary), var(--teal));
  box-shadow: 0 10px 24px rgba(20, 95, 255, 0.32);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.42rem 0.64rem;
  transition: color 0.24s ease, background 0.24s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
}

/* Buttons and micro-interactions */
.btn {
  border: none;
  text-decoration: none;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.btn.primary {
  color: #fff;
  padding: 0.86rem 1.2rem;
  background: linear-gradient(136deg, var(--primary), var(--primary-deep));
  box-shadow: 0 16px 32px rgba(20, 95, 255, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(17, 78, 197, 0.4);
}

.btn.ghost {
  padding: 0.84rem 1.14rem;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.84);
}

.actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Hero */
.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 95, 255, 0.22);
  color: #0f52d7;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  box-shadow: var(--soft-shadow);
}

.trust-line {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #3f5785;
  font-weight: 600;
}

.meta-row {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: #43567a;
  font-size: 0.87rem;
}

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

.glass {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(150deg, var(--surface-strong), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(16px);
  box-shadow: var(--hard-shadow);
  position: relative;
  overflow: hidden;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero-card {
  padding: 1.04rem;
}

.hero-image {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 0.8rem;
  position: relative;
}

.hero-image img {
  aspect-ratio: 5 / 3.4;
  width: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(8, 20, 45, 0.32) 100%);
}

.hero-image span {
  position: absolute;
  left: 0.72rem;
  bottom: 0.72rem;
  z-index: 1;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.66rem;
}

.stat {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
  padding: 0.76rem;
}

.stat strong {
  display: block;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Cards and grids */
.cards-2,
.cards-3,
.cards-4,
.cards-5 {
  display: grid;
  gap: 0.9rem;
}

.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.5));
  box-shadow: var(--soft-shadow);
  padding: 1.12rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(10, 28, 58, 0.15);
}

.icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #0a47be;
  background: linear-gradient(135deg, rgba(20, 95, 255, 0.2), rgba(39, 198, 170, 0.22));
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.34rem;
}

.card p,
.card li,
.text-muted {
  color: var(--muted);
  font-size: 0.91rem;
}

.image-card {
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 230px;
  position: relative;
  box-shadow: var(--soft-shadow);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

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

.image-card span {
  position: absolute;
  left: 0.74rem;
  bottom: 0.74rem;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: rgba(10, 19, 36, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.testimonial {
  overflow: hidden;
}

.testimonial-photo {
  border-radius: 14px;
  overflow: hidden;
  height: 150px;
  margin-bottom: 0.8rem;
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.94rem;
  color: #1b2e52;
}

.module-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1b4eb9;
  margin-bottom: 0.28rem;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0.8rem;
}

.step {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--teal));
  box-shadow: 0 12px 22px rgba(20, 95, 255, 0.28);
}

/* Pricing */
.pricing-wrap {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px solid rgba(20, 95, 255, 0.24);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.8), rgba(234, 244, 255, 0.88));
  box-shadow: var(--hard-shadow);
  padding: 1.8rem 1.3rem;
  position: relative;
  overflow: hidden;
}

.pricing-wrap::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 95, 255, 0.23), transparent 70%);
}

.price-row {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.old-price {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: #7a8cac;
  font-size: 1.2rem;
}

.new-price {
  font-family: "Fraunces", serif;
  font-size: clamp(2.7rem, 8vw, 5rem);
  color: #0e4ac2;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.list {
  list-style: none;
  text-align: left;
  max-width: 560px;
  margin: 1.05rem auto 1.3rem;
  display: grid;
  gap: 0.45rem;
}

.list li {
  position: relative;
  padding-left: 1.25rem;
}

.list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0d9d76;
  font-weight: 700;
}

/* Helpers */
.center {
  text-align: center;
}

.progress {
  margin-top: 0.72rem;
  height: 8px;
  border-radius: 999px;
  background: #d9e4f7;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transition: width 1.3s ease;
}

/* Footer */
.footer {
  margin-top: 2rem;
  padding: 2.6rem 0 3.1rem;
  background:
    radial-gradient(780px 380px at 15% -20%, rgba(20, 95, 255, 0.2), transparent 70%),
    radial-gradient(650px 340px at 90% -20%, rgba(39, 198, 170, 0.2), transparent 70%),
    linear-gradient(180deg, #f0f6ff 0%, #ebf3ff 100%);
  border-top: 1px solid rgba(20, 95, 255, 0.12);
  color: #3d5279;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: #4a618d;
}

.footer-links a:hover {
  color: #123b95;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.988);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.float {
  animation: float 5.3s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 1080px) {
  .hero-layout,
  .cards-5,
  .cards-4 {
    grid-template-columns: 1fr 1fr;
  }

  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.2rem 0;
  }

  .nav-links {
    display: none;
  }

  .hero-layout,
  .cards-5,
  .cards-4,
  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    opacity: 1;
  }

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