/* =============================================================
   Codexa Technology — Apple-inspired light theme
   ============================================================= */

:root {
  --bg:          #ffffff;
  --bg-alt:      #f5f5f7;
  --bg-soft:     #fbfbfd;
  --ink:         #1d1d1f;
  --ink-2:       #424245;
  --ink-3:       #6e6e73;
  --ink-4:       #86868b;
  --line:        rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --blue:        #0047ff;
  --cyan:        #00c2e0;
  --grad:        linear-gradient(120deg, #0047ff 0%, #00c2e0 100%);
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg:   0 30px 80px rgba(0, 71, 255, 0.10), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius-sm:   12px;
  --radius:      18px;
  --radius-lg:   24px;
  --radius-xl:   28px;
  --container:   1200px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

::selection { background: rgba(0, 71, 255, 0.15); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* =============================================================
   Nav
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo img { height: 34px; width: auto; }
.nav-wordmark { font-size: 1rem; color: var(--ink); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  padding: 9px 20px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

.nav-burger {
  display: none;
  width: 34px;
  height: 34px;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}
.nav-burger span:nth-child(1) { top: 11px; }
.nav-burger span:nth-child(2) { top: 16px; }
.nav-burger span:nth-child(3) { top: 21px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 980px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 71, 255, 0.25);
}
.btn-ghost {
  color: var(--blue);
  padding: 13px 4px;
}
.btn-ghost:hover { color: var(--cyan); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* =============================================================
   Sections
   ============================================================= */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  max-width: 780px;
  margin-bottom: 64px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 20px;
  max-width: 640px;
}
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 180px) 0 clamp(60px, 10vw, 120px);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}
.hero-glow {
  position: absolute;
  inset: -20% -20% auto auto;
  width: 80vw;
  height: 80vw;
  max-width: 1000px;
  max-height: 1000px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 71, 255, 0.12) 0%, rgba(0, 194, 224, 0.06) 40%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
  animation: glowDrift 14s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-4%, 3%) scale(1.08); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero-copy { max-width: 620px; }
.hero-illu {
  position: relative;
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-illu img {
  width: 100%;
  height: auto;
  max-width: 520px;
  margin-left: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 71, 255, 0.12));
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(0, 71, 255, 0.06);
  border: 1px solid rgba(0, 71, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 71, 255, 0.5); }
  50%      { opacity: 0.7; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 71, 255, 0); }
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 680px;
  margin-bottom: 40px;
  font-weight: 400;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

/* Floating decorative shapes in hero */
.float-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  mix-blend-mode: multiply;
  filter: blur(0.4px);
}
.shape-1 {
  top: 14%;
  left: 6%;
  width: 14px;
  height: 14px;
  background: var(--blue);
  animation: floatA 9s ease-in-out infinite;
}
.shape-2 {
  top: 30%;
  left: 42%;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  animation: floatB 11s ease-in-out infinite;
}
.shape-3 {
  bottom: 22%;
  left: 18%;
  width: 22px;
  height: 22px;
  border: 2px solid var(--blue);
  background: transparent;
  border-radius: 6px;
  transform: rotate(18deg);
  animation: floatC 13s ease-in-out infinite;
  opacity: 0.35;
}
.shape-4 {
  top: 58%;
  right: 8%;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 4px;
  transform: rotate(45deg);
  animation: floatB 10s ease-in-out infinite reverse;
  opacity: 0.4;
}
@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(12px, -18px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-16px, 14px); }
}
@keyframes floatC {
  0%, 100% { transform: rotate(18deg) translate(0, 0); }
  50%      { transform: rotate(24deg) translate(10px, -12px); }
}

/* Section-level floating blobs */
.float-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.5;
}
.float-blob-1 {
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 71, 255, 0.12), transparent 70%);
  animation: blobDrift 18s ease-in-out infinite;
}
.float-blob-2 {
  top: 20%;
  left: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 194, 224, 0.10), transparent 70%);
  animation: blobDrift 22s ease-in-out infinite reverse;
}
.float-blob-3 {
  bottom: -100px;
  right: -60px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 71, 255, 0.09), transparent 70%);
  animation: blobDrift 26s ease-in-out infinite;
}
.float-blob-4 {
  top: -80px;
  left: 20%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(0, 194, 224, 0.10), transparent 70%);
  animation: blobDrift 20s ease-in-out infinite reverse;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-24px, 18px) scale(1.08); }
}

.center-hero { padding: clamp(120px, 16vw, 200px) 0; text-align: center; }
.center-hero .hero-inner {
  display: block;
  max-width: 720px;
  margin: 0 auto;
}
.center-hero .hero-sub { margin-left: auto; margin-right: auto; }
.center-hero .hero-actions { justify-content: center; }

/* =============================================================
   Stats
   ============================================================= */
.stats {
  padding: 60px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat {
  padding: 20px 10px;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--line);
}
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin-top: 6px;
}

/* =============================================================
   About
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-copy .section-title { margin-bottom: 0; }
.about-points {
  list-style: none;
  margin-top: 36px;
  display: grid;
  gap: 18px;
}
.about-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.about-points .check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 2px;
  background: rgba(0, 71, 255, 0.08);
  border-radius: 50%;
  padding: 3px;
}
.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}
.about-illu {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto 24px;
}
.why-illu {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 32px auto 0;
}
.contact-illu {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 32px 0 0;
}
.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 980px;
  background: rgba(0, 71, 255, 0.08);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 22px;
}
.about-card p {
  color: var(--ink-2);
  margin-bottom: 14px;
  font-size: 0.96rem;
  line-height: 1.65;
}
.about-card em { color: var(--ink); font-style: italic; font-weight: 500; }
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tag {
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* =============================================================
   Services bento
   ============================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(340px, auto);
  gap: 20px;
}
.bento-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.bento-lg {
  background: linear-gradient(160deg, #ffffff 0%, #eff3ff 100%);
}
.bento-lg::after {
  content: '';
  position: absolute;
  inset: auto -80px -80px auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0,71,255,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.bento-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(0, 71, 255, 0.08);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 20px;
}
.bento-card h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}
.bento-card p {
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1.55;
  flex: 1;
}
.bento-link {
  margin-top: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.2s var(--ease);
}

/* =============================================================
   Product deep-dive sections
   ============================================================= */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.product-grid.reverse .product-copy { order: 2; }
.product-copy .section-title { margin-top: 12px; margin-bottom: 24px; }
.feature-list {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature-ico {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 71, 255, 0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 600;
}
.feature h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 0.94rem;
  color: var(--ink-3);
  line-height: 1.55;
}
.product-cta { margin-top: 36px; }

/* Mockup (dashboard) */
.mockup {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.mockup-bar > span:not(.mockup-url) {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d8d8db;
}
.mockup-bar > span:nth-child(1) { background: #ff5f57; }
.mockup-bar > span:nth-child(2) { background: #ffbd2e; }
.mockup-bar > span:nth-child(3) { background: #27c93f; }
.mockup-url {
  margin-left: 16px;
  font-size: 0.78rem;
  color: var(--ink-3);
  background: #fff;
  padding: 4px 14px;
  border-radius: 980px;
  border: 1px solid var(--line);
  width: auto !important;
  height: auto !important;
}
.mockup-body {
  padding: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}
.mockup-stat {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  margin-bottom: 20px;
}
.mockup-stat span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mockup-stat strong {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mockup-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mockup-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}
.tile-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.tile-lbl {
  font-size: 0.76rem;
  color: var(--ink-3);
  margin-top: 4px;
}

/* Menu mock */
.menu-mock {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 28px;
}
.menu-mock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.menu-mock-head strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.menu-mock-head span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.menu-dot {
  padding: 4px 10px;
  border-radius: 980px;
  background: rgba(39, 201, 63, 0.1);
  color: #1e9b35;
  font-size: 0.7rem !important;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.menu-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27c93f;
  animation: pulse 2s ease-in-out infinite;
}
.menu-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.menu-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  background: var(--bg-soft);
}
.menu-item.featured {
  background: linear-gradient(135deg, rgba(0, 71, 255, 0.06), rgba(0, 194, 224, 0.06));
  border-color: rgba(0, 71, 255, 0.24);
}
.mi-ico {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 8px;
}
.mi-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.mi-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
}

/* Code mock */
.code-mock {
  background: #1d1d1f;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-mock .mockup-bar {
  background: #2a2a2d;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.code-mock .mockup-url {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}
.code-body {
  padding: 32px;
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #f5f5f7;
  overflow-x: auto;
  white-space: pre;
}
.c-cm { color: #6e7a99; font-style: italic; }
.c-kw { color: #ff7cc0; }
.c-var { color: #82e5ff; }
.c-str { color: #a8e6a1; }

/* =============================================================
   Why Codexa
   ============================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s var(--ease);
  position: relative;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.why-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.why-card p {
  color: var(--ink-3);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* =============================================================
   Contact
   ============================================================= */
.contact {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-copy .section-title { margin-top: 12px; margin-bottom: 24px; }
.contact-meta {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.cm-row {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.cm-lbl {
  width: 70px;
  color: var(--ink-3);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.cm-row a { color: var(--blue); font-weight: 500; }

/* Form */
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 20px;
}
.form-error {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  font-size: 0.9rem;
  line-height: 1.5;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.field label .opt { color: var(--ink-4); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  font-family: inherit;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 71, 255, 0.1);
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-3);
  text-align: center;
  margin: 0;
}
.contact-form .btn { justify-self: center; width: 100%; justify-content: center; }

/* =============================================================
   Footer
   ============================================================= */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  gap: 30px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--blue); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: #fff;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social a:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-tag { font-style: italic; }
.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 0.82rem;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}
.footer-legal a:hover { color: var(--blue); }

/* =============================================================
   Legal pages (Privacy, Terms)
   ============================================================= */
.legal {
  padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 10vw, 120px);
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(0, 71, 255, 0.06), transparent 60%),
    radial-gradient(800px 400px at -10% 20%, rgba(0, 71, 255, 0.04), transparent 60%),
    #fff;
}
.legal-inner { max-width: 780px; }
.legal-head { margin-bottom: 48px; }
.legal-head .section-title { margin-top: 12px; }
.legal-meta {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.legal-body { color: var(--ink-2); }
.legal-body .lede {
  margin-top: 0;
  margin-bottom: 32px;
  max-width: none;
  color: var(--ink-3);
}
.legal-body h2 {
  margin: 44px 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.legal-body p,
.legal-body ul {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal-body p { margin: 0 0 16px; }
.legal-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 71, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.legal-body a:hover { text-decoration-color: var(--blue); }
.legal-cta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* =============================================================
   Scroll to top
   ============================================================= */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
  z-index: 110;
}
.scroll-top svg { width: 20px; height: 20px; }
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover { background: var(--blue); }

/* =============================================================
   Floating contact widget
   ============================================================= */
.contact-widget {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}
.contact-widget > * { pointer-events: auto; }

.cw-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 16px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 71, 255, 0.22), 0 6px 14px rgba(0, 0, 0, 0.12);
  transition: background 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cw-fab:hover { background: var(--blue); transform: translateY(-1px); }
.cw-fab-ico { width: 22px; height: 22px; }
.cw-fab-x { display: none; }
.cw-fab-label { line-height: 1; }
.contact-widget.open .cw-fab-chat { display: none; }
.contact-widget.open .cw-fab-x { display: block; }
.contact-widget.open .cw-fab-label { display: none; }
.contact-widget.open .cw-fab { padding: 0; width: 52px; justify-content: center; }

.cw-panel {
  width: min(340px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.16), 0 12px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.contact-widget.open .cw-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cw-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cw-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.cw-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cw-close {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cw-close svg { width: 14px; height: 14px; }
.cw-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cw-lede {
  margin: 10px 0 16px;
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.cw-actions { display: flex; flex-direction: column; gap: 8px; }
.cw-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f5f7;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cw-action:hover:not(.cw-static) {
  background: #fff;
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.cw-static { cursor: default; }
.cw-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.cw-ico svg { width: 18px; height: 18px; }
.cw-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cw-txt strong { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.cw-txt span { font-size: 0.8rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =============================================================
   Scroll reveal
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-copy { max-width: 100%; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-illu img { margin: 0 auto; max-width: 380px; }

  .about-grid,
  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .product-grid.reverse .product-copy { order: 0; }

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

@media (max-width: 780px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-burger { display: block; }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
  }
  .nav.open .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav.open .nav-links a:last-child { border-bottom: 0; }

  .hero { padding: 60px 0 60px; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.6rem); }
  .hero-actions { gap: 10px; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }

  .section { padding: 70px 0; }
  .section-head { margin-bottom: 44px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat + .stat::before { display: none; }
  .stats-grid .stat:nth-child(odd)::before {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--line);
  }

  .about-card,
  .bento-card,
  .why-card,
  .contact-form {
    padding: 28px;
  }
  .bento,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .bento-lg {
    grid-column: auto;
  }

  .hero-illu img { max-width: 280px; }
  .float-blob { opacity: 0.35; }
  .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .contact-widget { right: 16px; bottom: 72px; gap: 12px; }
  .cw-fab { height: 48px; font-size: 0.9rem; padding: 0 16px 0 14px; }
  .contact-widget.open .cw-fab { width: 48px; }
  .cw-panel { padding: 20px 18px 16px; border-radius: 20px; }

  .mockup-body { padding: 22px; }
  .mockup-tiles,
  .menu-items { grid-template-columns: repeat(2, 1fr); }
  .code-body { font-size: 0.76rem; padding: 22px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

@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;
  }
}
