:root {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #111114;
  --card-foreground: #fafafa;
  --popover: #09090b;
  --popover-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #18181b;
  --secondary: #27272a;
  --secondary-foreground: #fafafa;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafafa;
  --border: #27272a;
  --border-subtle: #1e1e24;
  --ring: #d4d4d8;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Minimal Sticky Navbar */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.brand-text {
  white-space: nowrap !important;
  display: inline-block;
  line-height: 1;
}

.brand-logo {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: block;
  object-fit: contain;
  flex-shrink: 0 !important;
}

.brand-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  border: 1px solid var(--border);
  font-size: 11px;
  flex-shrink: 0 !important;
}

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

.nav-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--foreground);
}

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

.nav-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0 !important;
}

.nav-download-icon {
  display: inline-block;
  line-height: 1;
}

/* shadcn UI Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  height: 36px;
  padding: 0 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  border: 1px solid transparent;
  gap: 8px;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 0.8125rem;
}

.btn-lg {
  height: 44px;
  padding: 0 24px;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: #e4e4e7;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: #3f3f46;
  border-color: #52525b;
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--secondary);
  border-color: #3f3f46;
}

.btn-ghost {
  background-color: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.badge:hover {
  border-color: #3f3f46;
  color: var(--foreground);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
}

/* Hero Section */
.hero {
  padding: 80px 0 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 3.25rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--foreground);
  max-width: 800px;
  margin: 20px 0 16px;
}

.hero p.subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 620px;
  margin: 0 auto 32px;
}

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

.cta-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: #71717a;
}

/* Section Header */
.section-header {
  margin: 64px 0 32px;
  text-align: left;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.section-desc {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-top: 6px;
  max-width: 600px;
}

/* App Screenshot Showcase Frame */
.app-preview-frame {
  width: 100%;
  max-width: 960px;
  margin: 44px auto 0;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s ease;
}

.app-preview-frame:hover {
  border-color: #3f3f46;
}

.app-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Feature Grid (shadcn card style) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.card:hover {
  border-color: #3f3f46;
}

.card-icon {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--foreground);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* Minimal Banner */
.minimal-banner {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  padding: 36px 32px;
  margin: 48px 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.banner-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.banner-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 520px;
}

/* Pricing Toggle */
.pricing-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin: 28px 0 36px;
}

.pricing-toggle-container {
  display: inline-flex;
  align-items: center;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
}

.pricing-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pricing-toggle-btn:hover {
  color: var(--foreground);
}

.pricing-toggle-btn.active {
  background-color: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pricing-save-badge {
  display: inline-block;
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1.2;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 32px auto 48px;
}

.pricing-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 12px auto 48px;
}

@media (max-width: 960px) {
  .pricing-grid-three {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

.pricing-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
  border-color: #3f3f46;
}

.pricing-card.featured {
  border-color: #52525b;
  background-color: #141418;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pricing-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.pricing-price-container {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--foreground);
}

.pricing-frequency {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.pricing-sub {
  font-size: 0.8125rem;
  color: #22c55e;
  font-weight: 500;
  margin-bottom: 12px;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.45;
  margin-bottom: 20px;
  min-height: 38px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #d4d4d8;
  line-height: 1.35;
}

.pricing-check {
  color: #22c55e;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-cta {
  width: 100%;
}

.badge-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  font-weight: 600;
}

.badge-success {
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
  font-weight: 600;
}

/* Welcome Page */
.welcome-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 0 64px;
}

.welcome-content-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-top: 32px;
}

.welcome-content-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-align: center;
}

.welcome-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .welcome-steps-grid {
    grid-template-columns: 1fr;
  }
}

.welcome-step-card {
  background-color: rgba(24, 24, 27, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
}

.welcome-step-number {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.welcome-step-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 6px;
}

.welcome-step-card p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.welcome-download-section {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* FAQ Accordion List */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin: 32px 0 64px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-q {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 6px;
}

.faq-a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* Downloads Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 36px auto 48px;
}

.download-box {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.download-box:hover {
  border-color: #3f3f46;
}

.download-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

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

.download-platform-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--foreground);
}

.download-box-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.download-box-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 20px;
  line-height: 1.55;
}

.download-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background-color: rgba(24, 24, 27, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.download-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.download-meta-label {
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.download-meta-value {
  color: #d4d4d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.download-box-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* Minimal Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.footer-nav {
  display: flex;
  gap: 16px;
}

.footer-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--foreground);
}

/* Responsive Styles */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
    letter-spacing: -0.035em;
  }

  .hero .subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 10px;
  }

  .cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-note {
    font-size: 0.75rem;
    margin-top: 10px;
  }

  .app-preview-frame {
    margin: 32px auto 0;
    border-radius: var(--radius);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 48px;
  }

  .card {
    padding: 20px 18px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0 36px;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  .pricing-card .btn {
    width: 100%;
    justify-content: center;
  }

  .download-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px auto 36px;
  }

  .download-box {
    padding: 24px 20px;
  }

  .download-box-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .minimal-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 16px;
    text-align: left;
  }

  .minimal-banner h2 {
    font-size: 1.25rem;
  }

  .minimal-banner .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Navbar Mobile - Hide links, transform Download to minimal icon button */
  ul.nav-links,
  .nav-links,
  .nav-links li {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-container {
    padding: 0 16px;
    height: 56px;
  }

  .brand-text {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap !important;
  }

  .nav-download-text {
    display: none !important;
  }

  .nav-download-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: var(--radius-sm) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .nav-download-icon {
    display: inline-block !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .nav-container {
    padding: 0 12px;
  }

  .brand-text {
    font-size: 0.85rem;
    white-space: nowrap !important;
  }

  .brand-logo {
    width: 22px;
    height: 22px;
  }

  .nav-download-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  .download-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .download-meta-value {
    font-size: 0.75rem;
  }
}

/* Account & Customer Portal Page */
.account-page-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 64px;
}

.account-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-top: 24px;
}

.account-card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.account-card-header p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.portal-form-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-input-group {
  display: flex;
  gap: 12px;
  width: 100%;
}

.portal-input-group input {
  flex: 1;
  background-color: rgba(24, 24, 27, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fafafa;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.portal-input-group input:focus {
  border-color: var(--primary);
}

.portal-error-msg {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 4px;
}

.account-card-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.account-help-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.account-help-text a {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .portal-input-group {
    flex-direction: column;
  }
}
