/* ============================================
   SESGO.AI v3 — Organic & Aesthetic
   Inspired by Peoplism's elegant flow
   ============================================ */

/* Typography: Thin sans + Brush Script */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Inter:wght@200;300;400;500;600&display=swap');

/* ============================================
   Design Tokens
   ============================================ */
:root {
  /* Palette — Soft & Premium */
  --ink: #0F1630;
  --forest: #2A3F8F;
  --forest-light: #3A4EA3;
  --sage: #5E71BD;

  --cream: #F7F5F2;
  --cream-warm: #FAF8F5;
  --muted: #7E89A9;
  --muted-light: #C8D0EA;

  --accent: #7B9FF0;
  --accent-light: rgba(123, 159, 240, 0.15);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Caveat', cursive;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.4s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-light);
  color: var(--ink);
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3 {
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
}

p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
}

/* Script accent — the magic touch */
.script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.15em;
  color: var(--ink);
  position: relative;
  display: inline-block;
}

/* Hand-drawn circle annotation */
.script::before {
  content: '';
  position: absolute;
  inset: -8px -16px;
  border: 2px solid var(--accent);
  border-radius: 50% 45% 55% 48%;
  opacity: 0.5;
  transform: rotate(-2deg);
}

/* Underline annotation */
.underline-hand {
  position: relative;
  display: inline-block;
}

.underline-hand::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -5%;
  width: 110%;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg width='100' height='8' viewBox='0 0 100 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6 Q25 2, 50 5 T100 4' stroke='%237B9FF0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 100% 100%;
  opacity: 0.6;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-3xl) 0;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: var(--cream);
  transition: box-shadow var(--duration) var(--ease);
}

.nav.scrolled {
  box-shadow: 0 1px 0 var(--muted-light);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}

.nav__logo-dot {
  font-family: var(--font-script);
  font-size: 1.4em;
  color: var(--sage);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__cta {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  background: var(--forest);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

.nav__cta:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero>.container {
  position: relative;
  z-index: 2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-react {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero__bg-react>div {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
}

.hero__bg-react canvas {
  position: absolute;
  right: -11%;
  top: 42%;
  transform: translateY(-50%);
  width: 62% !important;
  height: auto !important;
  min-height: 84%;
  image-rendering: pixelated;
  opacity: 1;
  filter: none;
}

.hero__bg-fade {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
}


.hero__content {
  max-width: 800px;
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  margin-bottom: var(--space-xl);
  font-size: 1.25rem;
}


.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn--primary {
  background: var(--forest);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(13, 31, 28, 0.15);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--muted-light);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

/* ============================================
   Stats — with thin vertical lines
   ============================================ */
.stats {
  background: var(--forest);
  color: var(--cream);
  padding: var(--space-2xl) 0;
}

.stats__grid {
  display: flex;
  justify-content: center;
}

.stat {
  flex: 1;
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

/* Thin vertical separator */
.stat::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.stat:last-child::after {
  display: none;
}

.stat__number {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 200;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat__label {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   Services — No boxes, flowing layout
   ============================================ */
.services {
  background: var(--cream-warm);
}

.services__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.services__header p {
  margin: var(--space-md) auto 0;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--muted-light);
  align-items: start;
  transition: background var(--duration) var(--ease);
}

.service-item:hover {
  background: rgba(123, 159, 240, 0.03);
}

.service-item:last-child {
  border-bottom: 1px solid var(--muted-light);
}

.service-item__number {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--sage);
  line-height: 1;
}

.service-item__content h3 {
  margin-bottom: var(--space-sm);
  font-weight: 400;
  font-size: 1.5rem;
}

.service-item__content p {
  font-size: 1rem;
  line-height: 1.8;
}

/* ============================================
   Testimonials — Clean with initials
   ============================================ */
.testimonials {
  background: var(--cream);
}

.testimonials__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.testimonials__label {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--sage);
  margin-bottom: var(--space-sm);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.testimonial {
  padding: var(--space-xl);
  background: var(--cream-warm);
  border-radius: 16px;
  border: 1px solid var(--muted-light);
}

.testimonial__text {
  font-size: 1.25rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  background: var(--forest);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.9rem;
}

.testimonial__info h4 {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 2px;
}

.testimonial__info p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
}

.cta__title {
  margin-bottom: var(--space-md);
}

.cta__subtitle {
  color: rgba(247, 245, 242, 0.7);
  margin: 0 auto var(--space-xl);
}

.cta .btn--primary {
  background: var(--cream);
  color: var(--forest);
}

.cta .btn--primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-xl) 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer__link:hover {
  color: var(--cream);
}

/* ============================================
   Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .stats__grid {
    flex-direction: column;
  }

  .stat::after {
    width: 40%;
    height: 1px;
    top: auto;
    bottom: 0;
    right: auto;
    left: 30%;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-top: 1px solid var(--muted-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav__menu.active {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

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


  .hero__bg-react canvas {
    opacity: 0.95;
    width: 108% !important;
    right: -17%;
    top: 44%;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    display: none;
  }
}
