:root {
  --brand: #7C3AED;
  --brand-deep: #5B21B6;
  --brand-soft: #A78BFA;
  --gradient-start: #7C3AED;
  --gradient-end: #6366F1;

  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --elevated: #F4F4F5;
  --border: #E4E4E7;
  --text: #18181B;
  --muted: #71717A;

  --cat-productivity: #14B8A6;
  --cat-health: #10B981;
  --cat-finance: #F59E0B;
  --cat-utility: #6366F1;

  --focus-mint: #73C78C;

  --nav-height: 72px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0A0A0F;
  --surface: #14141F;
  --elevated: #1E1E2E;
  --border: #2A2A3C;
  --text: #F4F4F5;
  --muted: #A1A1AA;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0F;
    --surface: #14141F;
    --elevated: #1E1E2E;
    --border: #2A2A3C;
    --text: #F4F4F5;
    --muted: #A1A1AA;
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

:root[data-theme="dark"] .nav-logo .logo-dark {
  display: block;
}

:root[data-theme="dark"] .nav-logo .logo-light {
  display: none;
}

:root[data-theme="light"] .nav-logo .logo-dark {
  display: none;
}

:root[data-theme="light"] .nav-logo .logo-light {
  display: block;
}

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

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

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

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

.theme-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.theme-toggle button {
  padding: 7px 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.theme-toggle button.active {
  background: var(--brand);
  color: #fff;
}

.theme-toggle button:not(.active):hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--brand-soft);
  color: var(--brand);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(124, 58, 237, 0.18), transparent),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(99, 102, 241, 0.1), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 88px 0;
  scroll-margin-top: var(--nav-height);
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
}

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

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .app-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.app-icon-inverse {
  object-fit: contain;
  padding: 8px;
  background: #15151b;
}

.app-icon-book {
  object-fit: contain;
  padding: 8px;
  background: linear-gradient(135deg, #24007A, #D100FF);
}

.app-category {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-category::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.app-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  flex: 1;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
}

.app-links a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.app-links span {
  font-size: 13px;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.about-photo {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(99, 102, 241, 0.08)),
    var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.about-photo svg {
  width: 48px;
  height: 48px;
}

.about-photo span {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.about-text p strong {
  color: var(--text);
  font-weight: 600;
}

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

.stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.service-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 0;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  padding-bottom: 16px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  display: none;
  padding: 16px;
  border-radius: 8px;
  background: color-mix(in srgb, #22C55E 12%, transparent);
  border: 1px solid color-mix(in srgb, #22C55E 30%, transparent);
  color: var(--text);
  font-size: 14px;
}

.form-success.visible {
  display: block;
}

.honey {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-info h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, color 0.15s;
}

.contact-link:hover {
  border-color: var(--brand-soft);
  color: var(--brand);
}

.contact-link svg {
  flex-shrink: 0;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 24px;
  width: auto;
}


.footer-brand span {
  font-size: 13px;
  color: var(--muted);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

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

  .nav-links a {
    padding: 12px;
  }

  .nav-actions .btn-sm {
    display: none;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Product page */
.product-hero .product-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
}

.product-copy {
  max-width: 680px;
}

.product-copy h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 40px 0 12px;
}

.product-copy p,
.product-copy li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.product-copy a {
  color: var(--brand);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.feature-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}
