/* ============================================
   files-app.com — Design System & All Components
   ============================================ */

/* 1. Font Imports
   -------------------------------------------- */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* 2. CSS Reset
   -------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #09090b;
  color: #a1a1aa;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

/* 3. CSS Custom Properties
   -------------------------------------------- */
:root {
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --bg-tertiary: #27272a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-subtle: rgba(249, 115, 22, 0.1);
  --accent-border: rgba(249, 115, 22, 0.2);
  --success: #22c55e;
  --error: #ef4444;
  --max-width: 1200px;
  --nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
}

/* 4. Typography
   -------------------------------------------- */
h1 {
  font-family: 'Satoshi', sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

h2 {
  font-family: 'Satoshi', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h3 {
  font-family: 'Satoshi', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

p {
  margin-bottom: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

small {
  font-size: 14px;
  color: var(--text-muted);
}

/* 5. Utility Classes
   -------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

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

/* 6. Navbar
   -------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(9, 9, 11, 0.8);
  border-bottom: 1px solid var(--bg-tertiary);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.navbar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
}

.navbar-logo .dot {
  color: var(--accent);
}

.navbar-links {
  display: flex;
  gap: 32px;
  margin-left: 48px;
}

.navbar-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.navbar-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.navbar-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.navbar-burger span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

.navbar-mobile {
  display: none;
}

.navbar-mobile.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--bg-tertiary);
  padding: 16px 24px;
  gap: 12px;
}

.navbar-mobile a {
  color: var(--text-secondary);
  font-size: 16px;
  padding: 8px 0;
  text-decoration: none;
}

/* 7. Footer
   -------------------------------------------- */
.footer {
  border-top: 1px solid var(--bg-tertiary);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-column h4 {
  color: var(--text-primary);
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 15px;
}

.footer-column a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--bg-tertiary);
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--text-primary);
}

/* 8. Buttons
   -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--bg-tertiary);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* 9. Cards
   -------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 20px var(--accent-subtle);
}

.pricing-card {
  text-align: center;
  padding: 32px;
}

.pricing-card.featured {
  border-color: var(--accent-border);
  position: relative;
}

.pricing-card .price {
  font-family: 'Satoshi', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-card .period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card .plan-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-card .plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* 10. Badges
   -------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.badge-accent {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.badge-featured {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* 11. Form Inputs
   -------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'IBM Plex Sans', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form-checkbox {
  accent-color: var(--accent);
}

.form-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 4px;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* 12. Accordion
   -------------------------------------------- */
.accordion-item {
  border-bottom: 1px solid var(--bg-tertiary);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 20px 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
}

.accordion-icon {
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.3s;
  font-weight: 300;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

.accordion-content p {
  padding-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 13. Code Blocks
   -------------------------------------------- */
.code-block {
  background: #0c0c0e;
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--text-secondary);
}

.code-keyword {
  color: var(--accent);
}

.code-string {
  color: var(--success);
}

.code-comment {
  color: var(--text-muted);
}

.code-block .line-number {
  color: var(--text-muted);
  user-select: none;
  margin-right: 16px;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.code-header + .code-block {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* 14. Tables
   -------------------------------------------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  position: sticky;
  top: 64px;
  background: var(--bg-secondary);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  border-bottom: 1px solid var(--bg-tertiary);
  z-index: 10;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-tertiary);
  font-size: 14px;
  color: var(--text-secondary);
}

.comparison-table tr:hover td {
  background: var(--bg-card);
}

.check {
  color: var(--accent);
  font-weight: 700;
}

.dash {
  color: var(--text-muted);
}

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

.params-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--bg-tertiary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.params-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bg-tertiary);
  color: var(--text-secondary);
}

.params-table .required {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

/* 15. Toast
   -------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  color: var(--text-primary);
  font-size: 14px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* 16. Hero Section
   -------------------------------------------- */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 16px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.hero-visual {
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* 17. Features Grid
   -------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

/* 18. How-It-Works Steps
   -------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  font-family: 'Satoshi', sans-serif;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 19. Auth Pages
   -------------------------------------------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  max-width: 420px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 40px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 28px;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 15px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bg-tertiary);
}

.auth-links {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--accent);
}

.code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.code-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  font-family: 'Satoshi', sans-serif;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.code-input:focus {
  border-color: var(--accent);
}

.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-tertiary);
  margin-top: 8px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
  width: 0;
}

/* 20. API Docs Layout
   -------------------------------------------- */
.api-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-height));
}

.api-sidebar {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  border-right: 1px solid var(--bg-tertiary);
  padding: 24px 0;
}

.api-sidebar-section {
  margin-bottom: 8px;
}

.api-sidebar-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 8px 24px;
  font-weight: 600;
}

.api-sidebar a {
  display: block;
  padding: 6px 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.api-sidebar a:hover {
  color: var(--text-secondary);
}

.api-sidebar a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-subtle);
}

.api-content {
  padding: 48px;
  max-width: 800px;
}

.api-content section {
  margin-bottom: 64px;
}

.method-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}

.method-get {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.method-post {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.method-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.endpoint-path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--text-primary);
  margin-left: 8px;
}

.api-mobile-toggle {
  display: none;
}

/* 21. Legal Pages
   -------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  max-height: calc(100vh - var(--nav-height) - 32px);
  overflow-y: auto;
}

.legal-toc h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-toc a {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.legal-toc a:hover {
  color: var(--text-primary);
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-header {
  margin-bottom: 32px;
}

.legal-header h1 {
  margin-bottom: 8px;
}

.legal-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* 22. Contact Page
   -------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.quick-help-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 24px;
}

.quick-help-card h4 {
  margin-bottom: 8px;
}

.mini-faq h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
  margin-top: 20px;
}

.mini-faq p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 23. Trust Section
   -------------------------------------------- */
.trust-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 14px;
  color: var(--text-secondary);
}

.trust-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* 24. Scroll Animations
   -------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 25. Loading Spinner
   -------------------------------------------- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 26. Success State
   -------------------------------------------- */
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--success);
}

/* 27. Mock Browser Window
   -------------------------------------------- */
.browser-mockup {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--bg-tertiary);
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.browser-dot.red {
  background: #ef4444;
}

.browser-dot.yellow {
  background: #eab308;
}

.browser-dot.green {
  background: #22c55e;
}

.browser-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 4px 12px;
  border-radius: 4px;
  flex: 1;
}

.browser-body {
  padding: 16px;
}

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

  .steps {
    gap: 24px;
  }
}

/* 29. Responsive — 768px
   -------------------------------------------- */
@media (max-width: 768px) {
  .navbar-links,
  .navbar-actions {
    display: none;
  }

  .navbar-burger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .api-layout {
    grid-template-columns: 1fr;
  }

  .api-sidebar {
    display: none;
  }

  .api-mobile-toggle {
    display: flex;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-badges {
    gap: 12px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .section {
    padding: 48px 0;
  }

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

  .hero-subtitle {
    font-size: 16px;
  }
}

/* 30. Responsive — 640px
   -------------------------------------------- */
@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .trust-badges {
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    font-size: 28px;
  }

  .code-inputs {
    gap: 4px;
  }

  .code-input {
    width: 40px;
    height: 48px;
    font-size: 20px;
  }

  .auth-card {
    padding: 24px;
  }
}
