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

/*
  Type scale
  ─────────────────────────────────────────
  Display  clamp(2.4rem, 5.5vw, 4rem)   wt 900  ls -0.04em  lh 1.0
  H2       clamp(1.75rem, 3.5vw, 2.5rem) wt 800  ls -0.035em lh 1.05
  H3       1.2rem                         wt 700  ls -0.025em lh 1.2
  H4       1rem                           wt 700  ls -0.02em  lh 1.25
  Body     0.9375rem (15px)               wt 400  ls 0        lh 1.65
  Small    0.8125rem (13px)               wt 400  ls 0        lh 1.55
  Label    0.675rem                       wt 700  ls 0.13em   uppercase
*/

/* ── Light mode tokens (default) ── */
:root {
  --bg:        #f5f4f0;
  --bg-2:      #eeecea;
  --surface:   #ffffff;
  --surface-2: #fafaf9;
  --text:      #18181b;
  --muted:     #71717a;
  --muted-2:   #a1a1aa;
  --border:    rgba(0,0,0,0.07);
  --border-2:  rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 12px 40px -8px rgba(0,0,0,0.1);

  /* accents stay same across modes */
  --brand-green:  #22a06b;
  --brand-green-l: rgba(34,160,107,0.1);
  --orange:  #ea580c;
  --green:   #16a34a;
  --green-l: rgba(22,163,74,0.12);

  /* hero uses its own dark bg regardless of mode */
  --hero-bg:    #0f0f0f;
  --hero-text:  #ffffff;
  --hero-muted: rgba(255,255,255,0.45);

  --radius:    16px;
  --radius-lg: 24px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1040px;
}

/* ── Dark mode overrides ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #18181b;
    --bg-2:      #141416;
    --surface:   #27272a;
    --surface-2: #2e2e32;
    --text:      #f4f4f5;
    --muted:     #a1a1aa;
    --muted-2:   #71717a;
    --border:    rgba(255,255,255,0.07);
    --border-2:  rgba(255,255,255,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow:    0 12px 40px -8px rgba(0,0,0,0.4);
    --brand-green-l: rgba(34,160,107,0.15);
    --green-l:   rgba(22,163,74,0.15);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(245,244,240,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 0.5rem 0 1rem;
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  .nav-inner {
    background: rgba(24,24,27,0.8);
  }
}

.nav-logo img {
  display: block;
  height: 30px;
  width: auto;
}

.nav nav {
  display: flex;
  gap: 0.15rem;
}

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: -0.01em;
}

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

/* ── Hero (always dark) ── */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 7rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 4rem);
  background: var(--hero-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 15% 50%, rgba(34,197,94,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 100% at 85% 50%, rgba(234,88,12,0.18) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-logo-mark {
  margin-bottom: 1.5rem;
}

.hero-logo-mark img {
  display: block;
  margin: 0 auto;
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 24px rgba(251,146,60,0.5)) drop-shadow(0 0 8px rgba(251,146,60,0.3));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

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

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--hero-text);
  margin-bottom: 1.1rem;
}

.hero-accent {
  display: block;
  background: linear-gradient(110deg, #4ade80 0%, #fb923c 55%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200%;
  animation: gradShift 6s ease-in-out infinite alternate;
}

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

.hero-sub {
  font-size: 0.9375rem;
  color: var(--hero-muted);
  line-height: 1.65;
  max-width: 32rem;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0.9rem 0;
  position: relative;
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrap::before { left: 0;  background: linear-gradient(to right, var(--surface), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left,  var(--surface), transparent); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 2.5rem;
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  min-height: 44px;
  letter-spacing: -0.015em;
}

/* on hero (dark bg) */
.btn-primary {
  background: #fff;
  color: #0a0a0a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(255,255,255,0.22); }

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateY(-2px); }

/* on light/dark content sections */
.btn-solid {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.775rem;
  min-height: 34px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-sm:hover { background: var(--surface-2); transform: translateY(-1px); }

/* ── Section scaffolding ── */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.label {
  display: inline-block;
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
}

/* ── Apps section ── */
.apps {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.section-head p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 28rem;
}

/* ── Category ── */
.category {
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.category:last-child { margin-bottom: 0; }

.category-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.category-head .label {
  margin-bottom: 0;
}

.category-icon {
  font-size: 0.95rem;
  color: var(--brand-green);
  flex-shrink: 0;
}

.category-head h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.category-head p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
  margin-left: auto;
}

/* ── Bento grid ── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}

.bento.bento-1 .app-card { grid-column: span 12; }
.bento.bento-2 .app-card:nth-child(1) { grid-column: span 7; }
.bento.bento-2 .app-card:nth-child(2) { grid-column: span 5; }
.bento.bento-3 .app-card { grid-column: span 4; }

/* ── App card ── */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(34,160,107,0.25);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.app-card-top h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.store-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.store-icon {
  display: inline-flex;
  align-items: center;
  color: var(--muted-2);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1;
}
.store-icon:hover { color: var(--text); }

.app-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.app-footer {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: auto;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-block;
  font-size: 0.675rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  border: 1px solid var(--border);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.675rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
}

.badge::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-green {
  background: var(--green-l);
  color: var(--green);
  border: 1px solid rgba(22,163,74,0.18);
}
.badge-green::before { background: var(--green); }

.badge-amber {
  background: rgba(251,191,36,0.1);
  color: #b45309;
  border: 1px solid rgba(251,191,36,0.18);
}
@media (prefers-color-scheme: dark) {
  .badge-amber { color: #fbbf24; }
}
.badge-amber::before { background: #f59e0b; }

/* ── About ── */
.about {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.85rem;
}

.about-text p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.value {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.value:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.value-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--brand-green-l);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.value h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.value p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Contact ── */
.contact {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--bg);
  text-align: center;
}

.contact-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.contact-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.contact-inner > p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--muted-2);
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .bento.bento-2 .app-card:nth-child(1),
  .bento.bento-2 .app-card:nth-child(2),
  .bento.bento-3 .app-card { grid-column: span 12; }

  .about-grid { grid-template-columns: 1fr; }
  .category-head { flex-direction: column; gap: 0.25rem; }
  .category-head p { margin-left: 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 0.5rem; }

  .nav { padding: 0; }
  .nav-inner {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    max-width: none;
    padding: 0 1rem 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .bento.bento-3 .app-card { grid-column: span 12; }
  .contact-inner h2 { font-size: clamp(2rem, 8vw, 3.5rem); }
}

/* ── Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
