:root {
  --bg: #eef3f9;
  --surface: #ffffff;
  --ink: #111d2b;
  --muted: #4f6072;
  --brand: #0f8e80;
  --brand-dark: #0a6e63;
  --accent: #ffa63d;
  --line: #cfdae7;
  --trust: #2e5bff;
  --warm: #ff7a45;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(13, 31, 55, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, #d0fbf4 0%, transparent 32%),
    radial-gradient(circle at 90% 10%, #ffe4c7 0%, transparent 28%),
    radial-gradient(circle at 60% 85%, #d8e6ff 0%, transparent 36%),
    var(--bg);
  line-height: 1.6;
  background-size: 160% 160%;
  animation: bgShift 14s ease-in-out infinite alternate;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 246, 248, 0.92);
  border-bottom: 1px solid rgba(216, 222, 229, 0.9);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
}

.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
  overflow: clip;
}

.gravity-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.96;
  mix-blend-mode: screen;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  z-index: 0;
}

.hero::before {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(46, 91, 255, 0.22) 0%, rgba(46, 91, 255, 0) 65%);
  top: -50px;
  right: 6%;
  animation: floatOrb 8s ease-in-out infinite;
}

.hero::after {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.25) 0%, rgba(255, 122, 69, 0) 68%);
  left: 2%;
  bottom: -40px;
  animation: floatOrb 10s ease-in-out infinite reverse;
}

.brand-comet {
  position: absolute;
  top: 140px;
  left: 140px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f2fffd 0%, #8adacc 40%, #1f9e91 72%, #16776d 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 12px 26px rgba(20, 90, 84, 0.28),
    0 0 28px rgba(66, 180, 168, 0.32);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
  opacity: 0.55;
  will-change: left, top, transform;
}

.brand-comet::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 214, 199, 0.34) 0%, rgba(98, 214, 199, 0.08) 45%, rgba(98, 214, 199, 0) 74%);
  animation: cometAura 2.4s ease-in-out infinite;
}

.comet-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #1f2d45;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.comet-ring {
  display: none;
}

.comet-ring-a {
  inset: -10px;
  animation: ringSpinA 3.6s linear infinite;
}

.comet-ring-b {
  inset: -18px;
  border-color: rgba(255, 214, 165, 0.46);
  animation: ringSpinB 5.6s linear infinite;
}

.comet-label {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  color: #effaf8;
  font-size: 0.56rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(10, 52, 49, 0.72);
  border: 1px solid rgba(190, 241, 233, 0.26);
  border-radius: 999px;
  padding: 3px 7px;
  box-shadow: 0 6px 16px rgba(9, 43, 40, 0.2);
}

.cursor-trail {
  display: none;
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 235, 193, 0.95) 0%, rgba(255, 165, 92, 0.42) 42%, rgba(255, 122, 69, 0) 75%);
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  will-change: left, top, opacity, transform;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .brand-comet,
  .cursor-trail {
    display: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 0 0 12px;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.hero-copy {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
}

.normal-note {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: #25384d;
  max-width: 65ch;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(46, 91, 255, 0.22);
  background: linear-gradient(135deg, rgba(46, 91, 255, 0.1), rgba(15, 142, 128, 0.08));
}

.normal-note strong {
  color: #173f86;
}

.founder-chip {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  width: fit-content;
  box-shadow: 0 8px 22px rgba(46, 91, 255, 0.12);
}

.founder-chip p {
  margin: 0;
  font-size: 0.92rem;
  color: #314050;
}

.founder-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #0a5f55);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -20%;
  width: 40%;
  height: 360%;
  transform: rotate(18deg);
  background: rgba(255, 255, 255, 0.22);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-tertiary {
  background: rgba(46, 91, 255, 0.1);
  color: #1b3f80;
  border-color: rgba(46, 91, 255, 0.3);
}

.btn-tertiary:hover {
  background: rgba(46, 91, 255, 0.18);
}

.hero-card,
.card,
.work-card,
.quote,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 26px;
  animation: softFloat 6s ease-in-out infinite;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.founder-photo-wrap {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 138, 123, 0.12), rgba(255, 179, 71, 0.22));
  border: 1px solid rgba(13, 138, 123, 0.2);
}

.founder-photo {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  object-position: 50% 14%;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 20%, #f6fffd 0%, #e6f7f3 100%);
  animation: softFloat 5.5s ease-in-out infinite;
}

.founder-photo-wrap figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #294153;
  font-weight: 700;
}

.hero-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.72);
}

.card-grid,
.work-grid {
  margin-top: 22px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategy-grid {
  margin-top: 22px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.strategy-card p {
  margin: 0;
  color: var(--muted);
}

.strategy-card .work-link {
  margin-top: 16px;
}

.card,
.work-card {
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 38px rgba(23, 32, 42, 0.12);
}

.card p,
.work-card p,
.about-grid p {
  color: var(--muted);
  margin: 0;
}

.work-link {
  display: inline-flex;
  margin-top: 14px;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 700;
  gap: 6px;
}

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

.work-link::after {
  content: "↗";
}

.trust-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-strip article {
  background: linear-gradient(135deg, rgba(46, 91, 255, 0.12), rgba(15, 142, 128, 0.08));
  border: 1px solid rgba(46, 91, 255, 0.16);
  border-radius: 14px;
  padding: 14px;
}

.trust-strip h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.trust-strip p {
  margin: 0;
  font-size: 0.92rem;
  color: #384c61;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-intro {
  margin: 4px 0 14px;
  color: #30465d;
  font-size: 1.02rem;
  font-weight: 500;
  max-width: 70ch;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.project-badge {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--trust);
  font-weight: 700;
  background: rgba(46, 91, 255, 0.12);
  border: 1px solid rgba(46, 91, 255, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
}

.project-goal {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--warm);
}

.project-media {
  border: 1px solid rgba(79, 96, 114, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: #f0f4fb;
  margin-bottom: 12px;
}

.project-media iframe {
  width: 100%;
  height: 210px;
  border: 0;
  display: block;
}

.project-impact {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #2e455c;
  font-weight: 500;
}

.work-footnote {
  margin: 18px 0 0;
  color: #25384d;
  font-weight: 600;
  background: rgba(15, 142, 128, 0.08);
  border: 1px solid rgba(15, 142, 128, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.faq-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.quote {
  padding: 22px;
  border-left: 6px solid var(--accent);
}

.quote p {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.quote span {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.contact-note {
  margin: 8px 0;
  color: #334254;
}

.contact-note a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.contact-quick {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-form {
  padding: 22px;
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 500;
}

input,
select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

input:focus,
select:focus {
  outline: 2px solid #6fc8bc;
  border-color: #6fc8bc;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-wrap p,
.footer-wrap a {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
}

.mobile-contact-bar {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@keyframes bgShift {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

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

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

@keyframes pulseOrb {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 164, 103, 0.38);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 164, 103, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 164, 103, 0);
  }
}

@keyframes ringSpinA {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ringSpinB {
  from {
    transform: rotate(360deg) scale(0.92);
  }
  to {
    transform: rotate(0deg) scale(1.08);
  }
}

@keyframes cometAura {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .strategy-grid,
  .project-grid,
  .trust-strip,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .founder-chip {
    width: 100%;
    border-radius: 16px;
    align-items: flex-start;
  }

  .founder-photo-wrap {
    padding: 10px;
  }

  .founder-photo {
    height: 340px;
    object-position: 50% 12%;
  }

  .brand-comet {
    width: 48px;
    height: 48px;
    opacity: 0.86;
  }

  .comet-label {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
    top: -26px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 4vw;
    right: 4vw;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  .mobile-contact-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    background: #10213d;
    border-radius: 14px;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    box-shadow: 0 14px 30px rgba(16, 33, 61, 0.34);
  }

  .mobile-contact-bar a {
    text-align: center;
    padding: 10px 12px;
    color: #f6fbfa;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
  }

  body {
    padding-bottom: 88px;
  }
}

/* Enhancements: conversion, multilingual controls, case-study cards */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
}

.normal-note strong {
  color: #173f86;
}

.service-link {
  display: inline-flex;
  margin-top: 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--brand-dark);
}

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

.project-media {
  aspect-ratio: 16 / 9;
}

.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-media iframe {
  display: none;
}

.work-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.work-actions .work-link {
  margin-top: 0;
}

.trust-badges {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-badges span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1b4459;
  border: 1px solid rgba(46, 91, 255, 0.22);
  background: rgba(46, 91, 255, 0.08);
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.testimonials-grid {
  margin-top: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.testimonial-card p {
  margin: 0 0 8px;
  color: #2c3f54;
}

.testimonial-card span {
  color: #5a6d80;
  font-size: 0.9rem;
  font-weight: 600;
}

.insights-grid {
  margin-top: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.insight-card p {
  color: var(--muted);
  margin: 0;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
  max-width: 780px;
}

.slot-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.slot-btn.active,
.slot-btn:hover {
  border-color: rgba(15, 142, 128, 0.5);
  background: rgba(15, 142, 128, 0.08);
  color: var(--brand-dark);
}

.desktop-talk {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  text-decoration: none;
  background: #0f8e80;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(15, 142, 128, 0.35);
}

.desktop-talk:hover {
  background: var(--brand-dark);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .insights-grid,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .lang-toggle {
    padding: 7px 10px;
    font-size: 0.84rem;
  }

  .desktop-talk {
    display: none;
  }
}

.case-video {
  margin: 14px 0;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #111;
  max-height: 420px;
}

.kpi-grid {
  margin: 8px 0 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.kpi-item h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.kpi-item p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}
