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

:root {
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --nav-bg: rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(15, 23, 42, 0.85);
  }
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  margin-top: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

/* Nav Bar */
.navbar {
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 9999px;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  color: #fff !important;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px;
}

/* Main Layouts */
.wrapper, .container {
  width: 90%;
  margin: 60px auto;
  flex: 1;
}
.wrapper { max-width: 1100px; }
.container { max-width: 850px; }

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 0 60px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .accent {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .tagline {
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 0 auto 40px;
  max-width: 650px;
  line-height: 1.6;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main) !important;
  padding: 14px 32px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: var(--border);
}

/* Feature Grid */
.features-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
}

.feature-card span.title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

/* About / Info Text in Index */
.about-section {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.about-section p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Policy Pages Formatting */
.page-header {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px 0;
}

.updated {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Outfit', sans-serif;
}

.policy-content section {
  margin-bottom: 48px;
}

.policy-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 48px 0 24px 0;
  display: flex;
  align-items: center;
}

.policy-content h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--primary);
  margin-right: 16px;
  border-radius: 4px;
}

.policy-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 32px;
  color: var(--text-main);
}

.policy-content p, 
.policy-content li {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.policy-content ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.policy-content li {
  margin-bottom: 12px;
}

.policy-content code {
  background: var(--bg-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9em;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.highlight-box,
.notice-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 24px 32px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
.highlight-box p, .notice-box p {
  margin: 0;
}

.billing-highlight {
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  margin: 32px 0;
}
.billing-highlight p:last-child {
  margin-bottom: 0;
}

.contact-footer {
  margin-top: 80px;
  padding: 48px;
  background: var(--text-main);
  color: var(--bg);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-footer h2 {
  color: var(--bg);
  justify-content: center;
  margin-top: 0;
  font-size: 2rem;
}

.contact-footer h2::before {
  display: none;
}

.contact-footer p {
  color: #94a3b8; /* slate-400 */
}

.contact-footer a {
  display: inline-block;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 16px;
}
.contact-footer a:hover {
  color: var(--primary-hover);
}

/* Footer Section */
footer {
  width: 100%;
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  margin-top: auto;
}

.footer-content {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  max-width: 300px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1100px;
  width: 90%;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  .hero {
    padding: 40px 0 30px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .wrapper, .container {
    margin: 40px auto;
  }
  .cta-group {
    flex-direction: column;
    align-items: stretch !important;
  }
  .cta-group a {
    text-align: center;
  }
  .nav-links {
    display: flex;
    position: absolute;
    top: -400px;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    border-bottom: 1px solid var(--border);
  }
  .nav-container.menu-open .nav-links {
    top: 60px;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .footer-brand {
    margin: 0 auto;
  }
  .policy-content h2 {
    font-size: 1.4rem;
  }
  .policy-content h3 {
    font-size: 1.1rem;
  }
  .highlight-box, .notice-box, .billing-highlight {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
  }
  .contact-footer {
    padding: 32px 20px;
    margin-top: 50px;
  }
  .contact-footer h2 {
    font-size: 1.6rem;
  }
  .contact-footer a {
    font-size: 1.1rem;
  }
}
