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

:root {
  --primary: #5b52f0;
  --primary-hover: #4a41d9;
  --primary-soft: #ede9fe;
  --primary-muted: rgba(91, 82, 240, 0.1);
  --accent: #8b5cf6;
  --text: #111111;
  --text-secondary: #5c5c5c;
  --text-tertiary: #8a8a8a;
  --bg: #ffffff;
  --bg-subtle: #f8f8fa;
  --bg-muted: #f0f0f3;
  --border: #e8e8ec;
  --border-strong: #d0d0d6;
  --surface-dark: #0c0c0f;
  --surface-dark-elevated: #18181c;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 80px rgba(91, 82, 240, 0.15);
  --nav-height: 68px;
  --section-gap: clamp(88px, 11vw, 128px);
  --container: 1080px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Monaco', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

/* ── Reveal animations (only when JS is active) ── */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.nav-links a.btn-nav {
  margin-left: 12px;
  padding: 9px 18px;
  background: var(--text);
  color: white;
  border-radius: 100px;
}

.nav-links a.btn-nav:hover {
  background: #2a2a2a;
  color: white;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(91, 82, 240, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91, 82, 240, 0.3);
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg);
}

.btn-outline:hover {
  border-color: var(--text);
  background: var(--bg-subtle);
}

.btn-large {
  padding: 15px 28px;
  font-size: 15px;
}

/* ── Section shared ── */
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 17px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(44px, 5vw, 60px);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ── Hero ── */
.hero {
  padding: calc(var(--nav-height) + clamp(56px, 9vw, 96px)) 0 clamp(72px, 9vw, 104px);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  top: -10%;
  right: -5%;
  background: rgba(91, 82, 240, 0.12);
}

.hero-glow-2 {
  width: 360px;
  height: 360px;
  bottom: 0;
  left: -8%;
  background: rgba(139, 92, 246, 0.08);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--bg);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(42px, 5.8vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}

.gradient-text {
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(17px, 2vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.75;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-principle {
  display: inline-flex;
  padding: 8px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.phone-mockup {
  width: 268px;
  background: var(--surface-dark);
  border-radius: 44px;
  padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 2;
}

.phone-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(91, 82, 240, 0.2) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.screen {
  background: var(--bg-subtle);
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  position: relative;
}

.screen-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 26px;
  background: var(--surface-dark);
  border-radius: 20px;
  z-index: 2;
}

.screen-content {
  padding: 54px 16px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.screen-greeting {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.screen-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.screen-card {
  background: white;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.screen-card-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  color: white;
}

.screen-card-accent .screen-bar {
  background: rgba(255, 255, 255, 0.25);
}

.screen-card-accent .screen-bar-fill {
  background: white;
}

.screen-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-bottom: 4px;
}

.screen-card-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.screen-card-value-sm {
  font-size: 16px;
}

.screen-card-detail {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.screen-card-row {
  display: flex;
  gap: 8px;
}

.screen-card-row .screen-card {
  flex: 1;
}

.screen-bar {
  height: 5px;
  background: var(--bg-muted);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.screen-bar-fill {
  height: 100%;
  width: 72%;
  background: var(--primary);
  border-radius: 3px;
}

.float-card {
  position: absolute;
  background: white;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--border);
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}

.float-card-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  color: var(--primary);
  flex-shrink: 0;
}

.float-card-icon svg {
  width: 15px;
  height: 15px;
}

.card-1 {
  top: 8%;
  right: -4%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 40%;
  left: -10%;
  animation-delay: 1.5s;
}

.card-3 {
  bottom: 8%;
  right: 4%;
  animation-delay: 3s;
}

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

/* ── Vision ── */
.vision {
  padding: var(--section-gap) 0;
  background: var(--bg-subtle);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.vision-card {
  background: var(--bg);
  padding: clamp(28px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.vision-card:hover {
  border-color: rgba(91, 82, 240, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.vision-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  color: var(--primary);
  margin-bottom: 20px;
}

.vision-icon svg {
  width: 24px;
  height: 24px;
}

.vision-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.vision-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Approach ── */
.approach {
  padding: var(--section-gap) 0;
  background: var(--surface-dark);
  color: white;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

.approach .section-title {
  color: white;
  margin-bottom: 36px;
}

.approach .section-eyebrow {
  color: #a5b4fc;
}

.approach-list {
  display: flex;
  flex-direction: column;
}

.approach-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.approach-item:first-child {
  padding-top: 0;
}

.approach-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.num {
  font-size: 12px;
  font-weight: 700;
  color: #818cf8;
  font-family: var(--font-mono);
  min-width: 28px;
  padding-top: 3px;
}

.approach-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.approach-item p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.65;
}

.code-block {
  background: var(--surface-dark-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-filename {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
  font-family: var(--font-mono);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot:nth-child(1) { background: #ef4444; }
.dot:nth-child(2) { background: #eab308; }
.dot:nth-child(3) { background: #22c55e; }

.code-block pre {
  padding: 24px;
  color: #d4d4d4;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
}

.code-block .kw { color: #c084fc; }
.code-block .fn { color: #67e8f9; }
.code-block .str { color: #86efac; }

/* ── Values ── */
.values {
  padding: var(--section-gap) 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  padding: clamp(32px, 4vw, 40px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.value-card:hover {
  border-color: rgba(91, 82, 240, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.value-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Contact ── */
.contact {
  padding: var(--section-gap) 0;
  background: var(--bg-subtle);
}

.contact-box {
  position: relative;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(52px, 6vw, 72px) clamp(28px, 4vw, 48px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(91, 82, 240, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-box h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.contact-box p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.contact-box .btn-primary {
  max-width: 100%;
  word-break: break-all;
  white-space: normal;
  text-align: center;
}

/* ── Footer ── */
.footer {
  background: var(--surface-dark);
  color: white;
  padding: 56px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
  font-size: 13px;
}

/* ── Policy pages ── */
.policy {
  max-width: 680px;
  margin: calc(var(--nav-height) + 56px) auto 96px;
  padding: 0 clamp(20px, 4vw, 32px);
}

.policy h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.policy > p:first-of-type {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 40px;
}

.policy h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
  color: var(--text);
}

.policy h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
  color: var(--text);
}

.policy h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text);
}

.policy ul,
.policy ol {
  margin: 0 0 16px 1.25em;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.policy li {
  margin-bottom: 8px;
}

.policy p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.policy a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy a:hover {
  color: var(--primary-hover);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
    order: -1;
  }

  .phone-mockup {
    width: 230px;
  }

  .card-1 { right: 0; }
  .card-2 { left: 0; }

  .vision-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 15px;
  }

  .nav-links a.btn-nav {
    margin-left: 0;
    text-align: center;
    margin-top: 8px;
  }

  .mobile-toggle {
    display: flex;
  }

  .footer-content {
    flex-direction: column;
  }

  .float-card {
    display: none;
  }

  .hero-title {
    font-size: clamp(36px, 9vw, 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
