@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Neutral, editorial palette */
  --bg: #f6f6f7;
  --surface: #ffffff;
  --ink: #16161c;
  --ink-2: #55555f;
  --muted: #8f8f99;
  --line: #e5e5e9;
  --line-strong: #d4d4da;

  --accent: #2554fb;
  --accent-dark: #1a3fd0;
  --accent-soft: rgba(37, 84, 251, 0.08);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(22, 22, 28, 0.05);
  --shadow-md: 0 6px 20px rgba(22, 22, 28, 0.07);
  --shadow-lg: 0 14px 40px rgba(22, 22, 28, 0.1);

  --transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;

  --text-xs: 0.72rem;
  --text-sm: 0.85rem;
  --text-base: 1rem;
  --text-lg: 1.12rem;
  --text-xl: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  --text-2xl: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 62px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.navbar-container {
  width: 100%;
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--ink);
  line-height: 1;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}

.nav-brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links li { margin: 0 !important; padding: 0 !important; display: flex; align-items: center; }

.nav-link {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  transition: var(--transition);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--ink);
  z-index: 110;
}

.nav-toggle svg { display: block; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  .nav-links.open { opacity: 1; pointer-events: auto; visibility: visible; }

  .nav-links li { width: 100%; }

  .nav-link { width: 100%; padding: 12px 8px; font-size: 1.05rem; border-bottom: none; }
  .nav-link:active { color: var(--accent); }
}

/* Layout */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 24px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section { margin-bottom: clamp(48px, 8vw, 88px); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 48px); }

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.section-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle { font-size: var(--text-lg); color: var(--ink-2); font-weight: 400; }

/* Hero */
.hero-section {
  text-align: center;
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
  max-width: 780px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-top: 20px;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-title-highlight {
  font-style: italic;
  color: var(--accent);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

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

@media (max-width: 992px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.feature-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }

.feature-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-wrapper svg { display: block; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-card p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.65; margin-bottom: 0; }

/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

@media (max-width: 992px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: var(--transition);
  position: relative;
}

.app-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.app-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.app-card-icon {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 1px solid var(--line);
}

.app-card-info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

.app-genre-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}

.app-card-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.app-card-desc {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.6;
}

.app-card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.app-card-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  background: var(--ink);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
  min-height: 42px;
}

.app-card-main-btn:hover { background: var(--accent); }

.app-card-sublinks {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--muted);
  flex-wrap: wrap;
}

.app-card-sublinks a { color: var(--muted); font-weight: 500; text-decoration: none; transition: var(--transition); }
.app-card-sublinks a:hover { color: var(--accent); }

/* CTA Banner */
.cta-banner {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 48px);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 84, 251, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.cta-subtitle { font-size: var(--text-base); color: #a1a1aa; max-width: 560px; margin: 0 auto 28px; }

.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Typography & Buttons */
h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1.25rem; color: var(--ink-2); font-size: var(--text-base); }

ul, ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--ink-2); font-size: var(--text-base); }
li { margin-bottom: 0.5rem; }

strong { font-weight: 600; color: var(--ink); }

hr { border: 0; height: 1px; background: var(--line); margin: 3rem 0; }

a { color: var(--accent); text-decoration: none; font-weight: 500; transition: var(--transition); }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
  min-height: 46px;
}

.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink) !important;
  border-color: var(--line-strong);
}

.btn-secondary:hover { background: var(--surface); border-color: var(--ink); color: var(--ink) !important; }

/* Footer */
footer {
  text-align: center;
  padding: clamp(36px, 6vw, 48px) clamp(20px, 4vw, 24px);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: auto;
}

footer p { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 0; font-size: var(--text-sm); }

footer a { color: var(--muted); margin: 0 12px; transition: var(--transition); font-weight: 500; }
footer a:hover { color: var(--ink); }

.footer-logo { font-weight: 700; color: var(--ink); margin-bottom: 12px; font-size: 1.05rem; letter-spacing: -0.01em; }

@media (max-width: 480px) {
  footer p { gap: 4px; }
  footer a { margin: 0 8px; }
}
