/* ==========================================================================
   FileFerry - Validation Landing Page Stylesheet
   Modern, Mobile-First, Performance-Focused
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #0a0e14;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(24, 32, 50, 0.85);
  --bg-input: #101622;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(16, 185, 129, 0.4);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);
  
  --accent-cyan: #0ea5e9;
  --accent-purple: #8b5cf6;
  
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  
  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Radii & Transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.header-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

.header-link:hover {
  color: var(--text-main);
}

/* Typography & Headings */
h1, h2, h3 {
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.section-heading {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sections */
.section {
  padding: 4.5rem 0;
  position: relative;
}

/* Hero Section */
.hero-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  text-align: center;
}

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

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.35rem;
  max-width: 720px;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 660px;
  margin-bottom: 2.25rem;
}

/* Forms */
.form-wrapper {
  width: 100%;
  max-width: 480px;
}

.signup-form {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.signup-form:focus-within {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 35px -8px rgba(16, 185, 129, 0.15);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.field-label {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.form-input:focus {
  outline: none;
  border-color: #10b981;
  background: #141c2c;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.plan-indicator {
  font-size: 0.83rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.active-plan-name {
  color: #34d399;
  font-weight: 700;
}

.change-plan-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

.change-plan-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Microcopy */
.microcopy {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 1rem;
  text-align: center;
}

/* Form Message */
.form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
}

.form-message.success {
  display: block;
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

.form-message.error {
  display: block;
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-card);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.4);
}

.card-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Problem Section */
.problem-section {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.problem-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Solution Section */
.solution-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 740px;
  margin: 0 auto;
}

.solution-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.35rem 1.6rem;
}

.solution-check {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

/* Pricing Section */
.pricing-section {
  background: rgba(0, 0, 0, 0.2);
}

.pricing-cards-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid var(--border-card);
  cursor: pointer;
  user-select: none;
}

.pricing-card:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.pricing-card.featured-plan {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 25px -5px rgba(16, 185, 129, 0.15);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(18, 24, 38, 0.95) 100%);
}

.pricing-card.plan-selected {
  border-color: #10b981;
  box-shadow: 0 0 30px -5px rgba(16, 185, 129, 0.3);
}

.featured-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #10b981;
  color: #0a0e14;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.pricing-card-header {
  margin-bottom: 1.25rem;
}

.plan-badge {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.badge-pro {
  color: #34d399;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.plan-details-wrap {
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.plan-features {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.plan-select-btn {
  width: 100%;
}

/* Plan Picker */
.plan-picker-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  background: rgba(14, 20, 32, 0.9);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.picker-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.picker-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.picker-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.picker-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
  background: #151d2c;
}

.picker-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 15px -3px rgba(16, 185, 129, 0.3);
}

.picker-radio-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  display: inline-block;
  transition: var(--transition);
}

.picker-btn.active .picker-radio-circle {
  border-color: #10b981;
  background: #10b981;
  box-shadow: inset 0 0 0 2.5px #0a0e14;
}

.picker-note {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 740px;
  margin: 0 auto;
}

.faq-card {
  padding: 1.6rem 1.75rem;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.faq-answer {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Final CTA Section */
.final-cta-section {
  padding: 5rem 0 6rem;
}

.final-cta-card {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 26, 42, 0.95) 0%, rgba(12, 17, 28, 0.98) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6), 0 0 40px -10px rgba(16, 185, 129, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-heading {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
  max-width: 600px;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.final-form-wrapper {
  margin: 0 auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.2rem 0;
  background: rgba(8, 11, 16, 0.95);
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-sub {
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive Breakpoints (Mobile First)
   ========================================================================== */

/* Tablet & Up (>= 640px) */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop & Up (>= 768px) */
@media (min-width: 768px) {
  .section {
    padding: 5.5rem 0;
  }

  .hero-section {
    padding-top: 6rem;
    padding-bottom: 5.5rem;
  }
}
