@import 'tailwindcss';

/* Global SVG sizing - prevents SVGs from becoming oversized */
svg {
  width: 1.5rem;
  height: 1.5rem;
}

:root {
  color-scheme: light dark;
  font-family:
    var(--font-inter),
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;

  /* Color System - Primary */
  --color-primary-accent: #38bdf8;
  --color-primary-dark: #003366;
  --color-secondary-accent: #ff6b35;
  --color-accent-gold: #ffd700;

  /* Color System - Neutrals */
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-border: rgba(148, 163, 184, 0.25);
  --color-text-primary: #f8fafc;
  --color-text-secondary: rgba(203, 213, 225, 0.9);
  --color-text-tertiary: rgba(148, 163, 184, 0.85);

  /* Color System - Feedback */
  --color-success: #34d399;
  --color-error: #f87171;
  --color-warning: #ff6b35;
  --color-info: #38bdf8;

  /* Spacing System */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Layout System */
  --layout-container-max-width: 1200px;
  --layout-gutter: 16px;
  --layout-sidebar-width: 280px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 8px 20px rgba(8, 47, 73, 0.5);
  --shadow-md: 0 30px 50px -40px rgba(8, 47, 73, 0.8);
  --shadow-lg: 0 40px 60px -40px rgba(15, 23, 42, 0.8);
  --shadow-focus: 0 0 0 3px rgba(56, 189, 248, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1e293b, #0f172a 60%);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

button {
  cursor: pointer;
}

/* ==================== dnd-kit-sortable-tree Overrides ==================== */
/* Override library default styles for dark theme */
.dnd-sortable-tree_simple_tree-item {
  border: none !important;
  color: inherit !important;
  background: transparent !important;
  padding: 0 !important;
}

.dnd-sortable-tree_simple_wrapper {
  margin-bottom: 0 !important;
}

.dnd-sortable-tree_folder_tree-item {
  border: none !important;
  background: transparent !important;
}

/* ==================== End dnd-kit-sortable-tree Overrides ==================== */

.landing-page {
  color: #f8fafc;
  background:
    radial-gradient(circle at top, rgba(51, 65, 85, 0.5), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.98) 100%);
  padding-bottom: 6rem;
  width: 100%;
}

.hero {
  display: flex;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.hero-content {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 32px;
  padding: 3.5rem 3rem;
  box-shadow: 0 40px 60px -40px rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
}

.hero-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-logos img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 8px 20px rgba(8, 47, 73, 0.75));
}

.hero-content h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin: 0;
}

.coming-soon-label {
  display: inline-flex;
  align-self: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.hero-content p {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.9);
}

.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.hero-actions .subtext {
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.85);
}

.hero-support {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.85);
}

.hero-support a {
  color: #38bdf8;
  font-weight: 600;
}

.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 0 1.5rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.proof-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.proof-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.proof-card p {
  margin: 0;
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.6;
}

.seo-section {
  width: 100%;
  padding: 5rem 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(15, 23, 42, 0.65);
}

.seo-section--core {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.seo-section--advanced {
  background: linear-gradient(180deg, rgba(14, 27, 57, 0.9) 0%, rgba(2, 6, 23, 0.98) 100%);
}

.seo-section__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.seo-section__callout {
  align-self: flex-start;
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 8px 18px -12px rgba(56, 189, 248, 0.5);
}

.seo-section__inner h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.seo-section__inner p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.7;
}

.seo-section__inner ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.85rem;
}

.seo-section__inner li {
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.6;
}

.pricing {
  padding: 0 1.5rem 5rem;
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pricing-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.pricing-header p {
  margin: 0;
  color: rgba(203, 213, 225, 0.85);
}

.monthly-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .monthly-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .monthly-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pricing-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 30px 50px -40px rgba(8, 47, 73, 0.8);
}

.pricing-card--highlight {
  border-color: #38bdf8;
  box-shadow: 0 35px 60px -35px rgba(14, 165, 233, 0.8);
}

.pricing-card--annual {
  background: rgba(8, 47, 73, 0.55);
  border-color: rgba(56, 189, 248, 0.4);
}

.plan-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  color: #0f172a;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-badge--outline {
  position: static;
  align-self: flex-start;
  margin-bottom: 0.5rem;
  background: transparent;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.6);
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.6rem;
}

.pricing-amount {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.9);
  text-transform: uppercase;
}

.pricing-description {
  margin: 0;
  color: rgba(203, 213, 225, 0.8);
  line-height: 1.6;
}

.pricing-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: rgba(226, 232, 240, 0.9);
}

.pricing-card li::marker {
  color: #38bdf8;
}

.subscribe-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px -12px rgba(14, 165, 233, 0.9);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.subscribe-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -15px rgba(14, 165, 233, 0.95);
}

.subscribe-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px -12px rgba(14, 165, 233, 0.9);
}

.subscribe-button--disabled {
  background: rgba(71, 85, 105, 0.4);
  color: rgba(226, 232, 240, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: none;
  cursor: not-allowed;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.subscribe-button--disabled:hover,
.subscribe-button--disabled:active {
  transform: none;
  box-shadow: none;
}

.annual-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.annual-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comparison {
  padding: 0 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.comparison-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.comparison-header p {
  margin: 0;
  color: rgba(203, 213, 225, 0.8);
}

.comparison-table {
  display: grid;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(200px, 2.5fr) repeat(4, minmax(120px, 1fr));
  padding: 1rem 1.5rem;
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
}

.comparison-row:nth-child(even) {
  background: rgba(15, 23, 42, 0.35);
}

.comparison-row--header {
  background: rgba(56, 189, 248, 0.12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.check {
  font-size: 1.25rem;
  color: #38bdf8;
  font-weight: 700;
}

.dash {
  color: rgba(148, 163, 184, 0.6);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .hero-content {
    padding: 2.75rem 1.75rem;
  }

  .plan-badge {
    position: static;
    align-self: flex-start;
  }

  .comparison-row {
    grid-template-columns: 1.5fr repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .comparison-row {
    grid-template-columns: minmax(150px, 1.5fr) repeat(4, minmax(80px, 1fr));
    font-size: 0.85rem;
  }
}

.contact {
  padding: 6rem 1.5rem 7rem;
  background: #1f2c44;
  margin-top: auto;
}

.contact__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__intro h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.contact__intro p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.7;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 30px 50px -40px rgba(8, 47, 73, 0.75);
}

.contact__field--textarea textarea {
  min-height: 150px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.8);
}

.contact__field span {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.contact__field input,
.contact__field textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  resize: vertical;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.contact__field input:disabled,
.contact__field textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.contact__submit {
  align-self: flex-start;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -18px rgba(14, 165, 233, 0.9);
}

.contact__submit:disabled {
  background: rgba(71, 85, 105, 0.45);
  color: rgba(226, 232, 240, 0.7);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.contact__feedback {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.8);
}

.contact__feedback--success {
  color: #34d399;
}

.contact__feedback--error {
  color: #f87171;
}

@media (min-width: 900px) {
  .contact {
    padding: 4.5rem 2.5rem 5.25rem;
  }

  .contact__inner {
    gap: 2rem;
  }

  .contact__intro {
    gap: 0.85rem;
  }

  .contact__form {
    padding: 1.75rem;
    gap: 1rem;
  }

  .contact__field {
    gap: 0.4rem;
  }

  .contact__field input,
  .contact__field textarea {
    padding: 0.75rem 0.9rem;
  }

  .contact__submit {
    padding: 0.75rem 1.85rem;
  }
}

/* Typography Utilities */
.text-h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.88px;
}

.text-h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.64px;
}

.text-h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.48px;
}

.text-h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.36px;
}

.text-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.text-body-small {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.text-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.text-button {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.text-code {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  font-family: 'Monaco', 'Courier New', monospace;
}

/* Text Color Utilities */
.text-primary {
  color: var(--color-text-primary);
}

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

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