@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: local('Syne');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: local('DM Sans');
}

:root {
  --color-brand: #FF5C00;
  --color-brand-dim: rgba(255, 92, 0, 0.12);
  --color-bg: #0A0A0A;
  --color-bg-2: #111111;
  --color-bg-3: #1A1A1A;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #F5F5F5;
  --color-text-muted: rgba(255, 255, 255, 0.45);
  --color-text-subtle: rgba(255, 255, 255, 0.25);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 100px;
  --shadow-glow: 0 0 40px rgba(255, 92, 0, 0.15);
  --transition: 0.2s ease;
}

[data-theme="light"] {
  --color-bg: #FAFAFA;
  --color-bg-2: #F3F3F3;
  --color-bg-3: #EBEBEB;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-text: #0A0A0A;
  --color-text-muted: rgba(0, 0, 0, 0.5);
  --color-text-subtle: rgba(0, 0, 0, 0.3);
}

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

::selection {
  background: #FF5C00;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  transition: background 0.3s ease;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 14px;
  text-decoration: none;
  transition: transform var(--transition), filter var(--transition), border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-primary {
  border: none;
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-head);
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: #FF5C00;
  color: #FF5C00;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background: var(--color-brand-dim);
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
}

.card {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: rgba(255, 92, 0, 0.3);
  transform: translateY(-2px);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .site-nav {
  background: rgba(250, 250, 250, 0.8);
}

.nav-shell {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
}

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

.nav-links {
  display: none;
  list-style: none;
  gap: 26px;
}

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

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

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

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-2);
  color: var(--color-text);
  cursor: pointer;
}

.menu-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-2);
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  cursor: pointer;
}

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

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px;
  background: var(--color-bg-2);
  transition: max-height .25s ease, padding .25s ease;
  border-bottom: 1px solid transparent;
}

.mobile-menu a {
  color: var(--color-text);
  text-decoration: none;
}

.mobile-menu.open {
  max-height: 300px;
  padding: 14px 24px 18px;
  border-bottom-color: var(--color-border);
}

.tool-hero {
  padding: 80px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.tool-hero .badge {
  margin-bottom: 16px;
  display: inline-block;
}

.tool-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
}

.tool-hero p {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.tool-body {
  padding: 48px 0 80px;
}

.site-footer {
  background: #0A0A0A;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-logo span {
  color: #FF5C00;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  line-height: 1.7;
  max-width: 200px;
}

.footer-heading {
  color: #ffffff;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  padding: 5px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #FF5C00;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom span {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

/* Light mode footer stays dark intentionally */
[data-theme="light"] .site-footer {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .nav-shell {
    height: 64px;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }

  .nav-links {
    display: flex;
  }
}

#pwa-install-banner {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 560px;
  background: var(--color-bg-2);
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  z-index: 9999;
  box-shadow: var(--shadow-glow);
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pwa-install-banner.visible {
  bottom: 24px;
}

.pwa-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-banner-left strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
}

.pwa-banner-left span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.pwa-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#pwa-dismiss-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

#pwa-dismiss-btn:hover {
  color: var(--color-text);
}

@media (max-width: 480px) {
  .pwa-banner-left span {
    display: none;
  }
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
  color: var(--color-text-muted);
}

.legal-table th {
  background: var(--color-bg-3);
  color: var(--color-text);
  font-weight: 600;
}

.tool-content {
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
}

.content-block {
  margin-bottom: 56px;
}

.content-block h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.content-block p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  max-width: 720px;
}

.steps-list {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.steps-list li::before {
  content: counter(steps);
  min-width: 28px;
  height: 28px;
  background: var(--color-brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

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

.features-list li {
  padding: 16px 20px;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.features-list li strong {
  color: var(--color-text);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-list .faq-item {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-list .faq-item:hover {
  border-color: rgba(255, 92, 0, 0.3);
}

.faq-list .faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

.faq-list .faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--color-brand);
  font-weight: 300;
  transition: transform var(--transition);
}

.faq-list .faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-list .faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 100%;
}

.contact-section {
  padding: 64px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

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

.contact-form-wrap {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-subtle);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-brand);
}

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

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--transition);
}

.contact-info-card:hover {
  border-color: rgba(255,92,0,0.3);
}

.contact-info-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.contact-info-card h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.contact-success {
  text-align: center;
  padding: 60px 40px;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.contact-success .success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.contact-success h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.contact-success p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

[data-theme="light"] body {
  background: #FAFAFA !important;
  color: #0A0A0A !important;
}

[data-theme="light"] nav,
[data-theme="light"] .navbar {
  background: rgba(250, 250, 250, 0.92) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] #theme-toggle {
  border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .card,
[data-theme="light"] .tool-card,
[data-theme="light"] .contact-form-wrap {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .color-bg-2,
[data-theme="light"] [style*="var(--color-bg-2)"] {
  background: #F3F3F3 !important;
}
