/* ============================================================
   Phoxel — shared design tokens & component primitives
   ============================================================ */

@import url('https://rsms.me/inter/inter.css');

:root {
  /* Palette — neutrals */
  --white: #ffffff;
  --cream: #faf9f6;
  --bg-soft: #f6f5f1;
  --bg-soft-2: #efeee9;
  --border: #e8e7e1;
  --border-strong: #d4d3cd;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --ink-3: #525252;
  --ink-4: #737373;
  --ink-5: #a3a3a3;

  /* Brand */
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-700: #3730a3;
  --primary-soft: #eef2ff;
  --primary-tint: #f5f3ff;

  /* Accent */
  --accent: #f97316;
  --accent-600: #ea580c;
  --accent-soft: #fff7ed;

  /* Status */
  --success: #10b981;
  --success-soft: #ecfdf5;
  --warning: #eab308;
  --danger: #ef4444;
  --danger-soft: #fef2f2;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-feat: "ss01", "ss03", "cv11";

  /* Radii */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Shadows — subtle */
  --shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-sm: 0 2px 6px rgba(10, 10, 10, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 24px 60px rgba(10, 10, 10, 0.08);

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  font-feature-settings: var(--font-feat);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { object-fit: cover; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ============================================================
   Type scale
   ============================================================ */
.t-display {
  font-size: clamp(48px, 7.2vw, 96px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
.t-h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.t-h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}
.t-h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.t-h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.t-lead {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-3);
  line-height: 1.5;
  text-wrap: pretty;
}
.t-body { font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.t-small { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.t-micro {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.t-mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.t-ink { color: var(--ink); }
.t-ink-3 { color: var(--ink-3); }
.t-primary { color: var(--primary); }
.t-accent { color: var(--accent); }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-hero { padding: 128px 0 96px; }

@media (max-width: 768px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-hero { padding: 88px 0 64px; }
  .section-tight { padding: 48px 0; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 8px 24px rgba(249, 115, 22, 0.25);
}
.btn-accent:hover { background: var(--accent-600); }

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

.btn-light {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-light:hover { border-color: var(--ink); background: var(--bg-soft); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* ============================================================
   Card primitives
   ============================================================ */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--border-strong); }
.card-tight { padding: 20px; }
.card-cream { background: var(--cream); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary-700);
  border-radius: var(--r-pill);
  letter-spacing: -0.005em;
}
.badge-accent { background: var(--accent-soft); color: var(--accent-600); }
.badge-soft { background: var(--bg-soft); color: var(--ink-3); }
.badge-success { background: var(--success-soft); color: #047857; }

.kbd {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  padding: 2px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* ============================================================
   Header / Footer
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--white);
}
.logo-mark::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  top: 5px;
  right: 5px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--bg-soft); color: var(--ink); }
.nav-item.has-menu::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  margin-left: 8px;
  opacity: 0.6;
}
.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px;
  min-width: 260px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.15s;
}
.nav-item.has-menu:hover .nav-menu,
.nav-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-xs);
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-menu a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-menu .menu-emoji {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
}

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-sm);
}
.lang-switch:hover { background: var(--bg-soft); color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 56px;
  margin-bottom: 64px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-4);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   Photo grid primitives (used across landings)
   ============================================================ */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  background: rgba(10, 10, 10, 0.7);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  letter-spacing: -0.005em;
}

/* Generic "AI photo placeholder" tile */
.ph-tile {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #c7d2fe, #ddd6fe 50%, #fed7aa);
}
.ph-tile-dark {
  background: linear-gradient(135deg, #4f46e5, #7c3aed 60%, #f97316);
}

/* Marquee / niche pill */
.niche-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.niche-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ============================================================
   Utility
   ============================================================ */
.grid { display: grid; }
.flex { display: flex; }
.center { display: grid; place-items: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.text-center { text-align: center; }
.relative { position: relative; }
.hide-mobile { }
.show-mobile { display: none !important; }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: revert !important; }
}

/* ============================================================
   Lucide-style icon wrapper
   ============================================================ */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 36px; height: 36px; }
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.icon-circle-accent { background: var(--accent-soft); color: var(--accent-600); }
.icon-circle-ink { background: var(--ink); color: var(--white); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  width: 100%;
}
.faq-q::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-3);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.6;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 12px;
}
