/* FileTron marketing — refined, quiet, product-aligned */

:root {
  --bg: #0f1115;
  --surface: #1e1e1e;
  --panel: #1a1d23;
  --panel-hover: #1f232b;
  --border: #2a2e36;
  --border-strong: #3a3f4a;
  --text: #ffffff;
  --text-secondary: #a8b0bc;
  --text-muted: #7d8694;
  --accent: #6ea8fe;
  --accent-deep: #1f3a5f;
  --success: #6ee7a0;
  --danger: #f87171;
  --radius: 16px;
  --radius-lg: 20px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --header-h: 64px;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 600;
  color: var(--text);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 17, 21, 0.8);
  border-bottom: 1px solid rgba(42, 46, 54, 0.8);
}

.header-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.desktop-nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 0.75rem 1.25rem 1.25rem;
  background: rgba(15, 17, 21, 0.97);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open {
  display: grid;
  gap: 0.25rem;
}

.mobile-nav a {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--panel);
  color: var(--text);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    color 0.2s var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: var(--text);
  background: var(--accent-deep);
  border-color: rgba(110, 168, 254, 0.35);
  box-shadow: 0 8px 24px rgba(31, 58, 95, 0.35);
}

.button-primary:hover {
  background: #274d7a;
  border-color: rgba(110, 168, 254, 0.55);
  box-shadow: 0 0 24px rgba(110, 168, 254, 0.18), 0 10px 28px rgba(31, 58, 95, 0.4);
}

.button-secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: rgba(31, 58, 95, 0.2);
}

.button-ghost {
  color: var(--text-secondary);
  background: transparent;
  border-color: var(--border);
}

.button-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.button[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
}

.full-width {
  width: 100%;
}

/* Layout */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.85rem;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 600;
}

.section-subtext {
  margin-top: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.5rem 2.25rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(720px, 90vw);
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(110, 168, 254, 0.16) 0%, rgba(31, 58, 95, 0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 540px;
  margin: 1.15rem auto 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.hero-notice {
  max-width: 540px;
  margin: 1.35rem auto 0;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(31, 58, 95, 0.12);
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Trust */
.trust-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.25rem;
  text-align: center;
  border-top: 1px solid rgba(42, 46, 54, 0.7);
}

.trust-strip > p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.15rem;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
}

.trust-items span {
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding-left: 1.1rem;
}

.trust-items span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  opacity: 0.7;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  min-height: 100%;
  cursor: default;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Workflow */
.workflow-section {
  border-top: 1px solid rgba(42, 46, 54, 0.7);
  border-bottom: 1px solid rgba(42, 46, 54, 0.7);
}

.workflow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.workflow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
}

.workflow-step p {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Demo video (below How FileTron Works) */
.demo-video-section {
  padding-top: 0.25rem;
  padding-bottom: 2.5rem;
}

.demo-video-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
}

.demo-video {
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  min-height: 100%;
  cursor: default;
}

.plan-name {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.plan-star {
  color: var(--accent);
  letter-spacing: 0;
  margin-left: 0.15rem;
}

.price {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.15rem;
}

.price span {
  margin-left: 0.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0;
}

.price-card ul {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0;
  align-content: start;
  flex: 1;
}

.price-card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 0;
}

.price-card li::before {
  content: none;
}

/* Download */
.download-section {
  border-top: 1px solid rgba(42, 46, 54, 0.7);
}

.download-card {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
}

.download-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.download-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Support */
.support-section {
  border-top: 1px solid rgba(42, 46, 54, 0.7);
}

.support-tabs {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.tab-button {
  min-height: 42px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.tab-button:hover {
  color: var(--text);
}

.tab-button.active {
  background: var(--accent-deep);
  color: var(--text);
}

.form-panel {
  display: none;
  max-width: 640px;
  margin: 0 auto;
}

.form-panel.active {
  display: block;
}

.support-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.support-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.support-form input,
.support-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #444444;
  background: #2a2a2a;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.support-form input:focus,
.support-form textarea:focus {
  border-color: var(--accent);
}

.support-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  min-height: 1.2rem;
  margin-top: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: transparent;
  background: transparent;
  border: 1px solid transparent;
}

.form-message:empty {
  display: none;
}

.form-message.success {
  color: var(--text);
  background: rgba(110, 231, 160, 0.1);
  border-color: rgba(110, 231, 160, 0.28);
}

.form-message.error {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.28);
}

.support-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Footer */
footer {
  border-top: 1px solid rgba(42, 46, 54, 0.7);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
}

.footer-links button {
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.footer-links button:hover {
  color: var(--accent);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  display: flex;
}

.legal-modal {
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(88vh, 820px);
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid #333333;
  position: relative;
}

.legal-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.legal-modal-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem 1.35rem 1.6rem;
}

.modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #2a2a2a;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--accent);
}

.legal-modal h2 {
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.25;
  padding-top: 0.2rem;
}

.legal-modal h3 {
  font-size: 1.02rem;
  margin: 1.35rem 0 0.55rem;
  color: var(--text);
}

.legal-modal h3:first-of-type {
  margin-top: 0.35rem;
}

.legal-modal p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-modal .legal-updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
}

.legal-modal ul {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.legal-modal li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-modal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 0.75rem;
  }

  .legal-modal {
    width: 100%;
    max-height: min(90vh, 860px);
  }

  .legal-modal-header,
  .legal-modal-body {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .legal-modal h2 {
    font-size: 1.2rem;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workflow {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .download-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
    margin-right: -0.85rem;
  }

  .site-header .brand {
    margin-left: -0.85rem;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.open {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .hero {
    padding-top: 3.75rem;
    padding-bottom: 2.5rem;
  }

  .section {
    padding-top: 3.35rem;
    padding-bottom: 3.35rem;
  }
}
