@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg: #F5EDD6; /* Washi paper parchment */
  --surface: #EDE4C8;
  --surface-modal: #FAF6EA;
  --border: #DDD5B8;
  --separator: #E4DBC2;

  --text-primary: #4E5B9C; /* Indigo */
  --text-secondary: #8A8A9C; /* Dusky gray */
  --text-muted: #ABABBA;
  --text-on-dark: #FFFFFF;

  --interactive: #5B6AA4;
  --interactive-hover: #45538C;
  --interactive-soft: rgba(91, 106, 164, 0.1);

  --accent: #C47830; /* Persimmon */
  --accent-hover: #AA611E;
  --accent-soft: rgba(196, 120, 48, 0.1);

  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 2px 8px rgba(78, 91, 156, 0.04);
  --shadow-md: 0 6px 20px rgba(78, 91, 156, 0.08);
  --shadow-lg: 0 16px 40px rgba(78, 91, 156, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container-width: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0C10; /* Sumi-ink black */
    --surface: #141418;
    --surface-modal: #1C1C24;
    --border: #2A2A38;
    --separator: #1E1E2A;

    --text-primary: #9898AC; /* Dusky gray becomes primary in dark */
    --text-secondary: #7880C4; /* Indigo becomes secondary */
    --text-muted: #55556A;

    --interactive: #8890CC;
    --interactive-hover: #9FA6D8;
    --interactive-soft: rgba(136, 144, 204, 0.15);

    --accent: #C47830;
    --accent-hover: #D68B44;
    --accent-soft: rgba(196, 120, 48, 0.18);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
  }
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--interactive);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--interactive-hover);
}

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

/* Header & Navigation */
header {
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 237, 214, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

@media (prefers-color-scheme: dark) {
  header {
    background-color: rgba(12, 12, 16, 0.9);
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-modal);
  padding: 2px;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-text span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  background-color: var(--interactive);
  color: var(--text-on-dark) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background-color: var(--interactive-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px 0;
  text-align: center;
  flex-grow: 1;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.badge-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--interactive-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 54px;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.5;
}

.cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--surface-modal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Badges */
.app-stores {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.store-badge-img {
  height: 40px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.store-badge-img:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Showcase Graphic */
.showcase {
  margin-top: 40px;
  margin-bottom: 80px;
  perspective: 1000px;
}

.showcase-inner {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  border: 4px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: rotateX(8deg);
  transition: var(--transition);
}

.showcase-inner:hover {
  transform: rotateX(0deg) translateY(-8px);
}

.showcase-graphic {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* Features Grid */
.features {
  padding: 80px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 38px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 18px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  background-color: var(--surface-modal);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--interactive);
}

.feature-icon {
  font-size: 36px;
  background-color: var(--surface);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 22px;
  color: var(--text-primary);
}

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

/* Layout for static sub-pages */
.page-header {
  padding: 60px 0 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 42px;
  color: var(--text-primary);
}

.page-content {
  max-width: 800px;
  margin: 0 auto 80px auto;
  padding: 0 16px;
}

.article-content {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.article-content h2 {
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.article-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.article-content li {
  margin-bottom: 8px;
}

/* Contact/Support Form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  background-color: var(--surface-modal);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--interactive);
  box-shadow: 0 0 0 3px var(--interactive-soft);
}

.submit-btn {
  align-self: flex-start;
}

/* Footer styling */
footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.footer-bottom {
  border-top: 1px solid var(--separator);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 16px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 91px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: var(--transition);
    border-top: 1px solid var(--border);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .article-content {
    padding: 24px;
  }
}

/* Coming Soon Badges and Disabled States */
.badge-wrapper, .cta-wrapper {
  position: relative;
  display: inline-block;
}

.coming-soon-label {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--accent); /* Persimmon */
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(196, 120, 48, 0.3);
  z-index: 10;
  pointer-events: none;
}

.nav-cta-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.coming-soon-label-sm {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
}

.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.5);
}

.footer-disabled-link {
  font-size: 14px;
  color: var(--text-muted);
  cursor: not-allowed;
  display: flex;
  align-items: center;
  gap: 8px;
}

.coming-soon-inline {
  font-size: 8px;
  font-weight: 700;
  background-color: var(--border);
  color: var(--text-secondary);
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

