/* =========================================================================
   Fillo AI - Landing Page Styles
   Theme: Dark cool (#1A1A1E) · Accent: #FF3B30 red · Gradient only in demo
========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ── Core Background Surfaces ── */
  --bg:          #1A1A1E;
  --surface:     #27272D;
  --surface2:    #383840;
  --surface3:    #4A4A55;

  /* ── Borders ── */
  --border:      #4A4A55;
  --border2:     rgba(255, 255, 255, 0.15);

  /* ── Accent Colors ── */
  --accent:      #FF3B30;
  --accent-hover: #e8352a;
  --accent-glow: rgba(255, 59, 48, 0.35);

  /* ── Demo-only gradient (hero mockup / floating panel) ── */
  --gradient:      linear-gradient(135deg, #D946EF, #8B5CF6, #007AFF);
  --gradient-glow: rgba(175, 82, 222, 0.4);

  /* ── Semantic Colors ── */
  --green:  #34C759;
  --red:    #FF3B30;
  --yellow: #FFCC00;

  /* ── Text ── */
  --text:       #F2F2F7;
  --text-muted: #AEAEB2;
  --text-dim:   #8E8E93;

  /* ── Radii ── */
  --radius:    12px;
  --radius-sm:  8px;
  --radius-lg: 16px;

  /* ── Glassmorphism ── */
  --glass-bg:     rgba(39, 39, 45, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-accent: rgba(255, 59, 48, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --glass-blur:   blur(14px);

  /* ── Layout ── */
  --container-width: 1200px;
  --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background-color: var(--accent);
  color: #fff;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.2;
  color: var(--text);
}

/* ── Accent Text (red → near-white) ── */
.text-gradient {
  background: linear-gradient(135deg, #FF3B30 0%, #F2F2F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================================
   Ambient Glow Effects
========================================================================= */
.ambient-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  filter: blur(130px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  animation: pulse-glow 12s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-1 {
  top: -20%;
  left: -15%;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.15) 0%, rgba(26, 26, 30, 0) 70%);
}

.glow-2 {
  bottom: 10%;
  right: -20%;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.08) 0%, rgba(26, 26, 30, 0) 70%);
  animation-delay: -6s;
}

@keyframes pulse-glow {
  0%   { transform: scale(1) translate(0, 0);      opacity: 0.25; }
  100% { transform: scale(1.1) translate(40px, 40px); opacity: 0.4; }
}

/* =========================================================================
   Layout Containers
========================================================================= */
.container,
.nav-container,
.footer-content {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section.section {
  padding: 6rem 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* =========================================================================
   Buttons
========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-large {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: var(--radius);
}

/* Primary — Solid Red */
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-2px);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Secondary */
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn-secondary:hover {
  background: var(--surface3);
  border-color: var(--border);
  transform: translateY(-2px);
  color: var(--text);
}

.hover-lift:hover {
  transform: translateY(-3px);
}

/* =========================================================================
   Glass Panels
========================================================================= */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.hover-glow:hover {
  border-color: var(--glass-border-accent);
  box-shadow: var(--glass-shadow), 0 0 22px var(--accent-glow);
  transform: translateY(-5px);
}

/* =========================================================================
   Logo
========================================================================= */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 2px 10px rgba(255, 59, 48, 0.25);
  flex-shrink: 0;
}

/* =========================================================================
   Navigation
========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(26, 26, 30, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(26, 26, 30, 0.97);
  border-bottom-color: var(--border2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-btn {
  padding: 0 18px;
  font-size: 13px;
  height: 36px;
  line-height: 1;
}

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

/* =========================================================================
   Hero Section
========================================================================= */
.hero {
  padding: 11rem 2rem 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--container-width);
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* Title */
.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Hero Stats / Badge Pills */
.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
}

.star-icon {
  color: var(--accent2);
}

/* ── Hero Visual ── */
.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* Browser Mockup */
.glass-mockup.browser-window {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transform: rotateY(-5deg) rotateX(5deg);
  animation: float 6s ease-in-out infinite;
  position: relative;
  overflow: visible;
}

@keyframes float {
  0%   { transform: rotateY(-5deg) rotateX(5deg) translateY(0px); }
  50%  { transform: rotateY(-5deg) rotateX(5deg) translateY(-14px); box-shadow: 0 35px 60px -15px rgba(0,0,0,0.7); }
  100% { transform: rotateY(-5deg) rotateX(5deg) translateY(0px); }
}

.browser-header {
  height: 40px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  gap: 1rem;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
}
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }

.browser-url {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11.5px;
  padding: 4px 14px;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
  font-family: 'Inter', monospace;
}

.browser-body {
  padding: 1.75rem;
  position: relative;
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

/* Mockup Form */
.mockup-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.row-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.fake-input {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  position: relative;
  transition: all 0.3s ease;
  flex: 1;
}

.fake-input .label {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 500;
}

.fake-input .val {
  font-size: 13px;
  color: var(--text-muted);
  height: 18px;
}

.fake-input.filled {
  border-color: rgba(175, 82, 222, 0.4);
  background: rgba(175, 82, 222, 0.06);
}

.fake-input.filled .val {
  color: var(--text);
}

.ai-sparkle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  width: 14px;
  height: 14px;
  opacity: 0;
}

.fake-input.filled .ai-sparkle,
.fake-input.typing .ai-sparkle {
  opacity: 1;
  animation: pulse-sparkle 2s infinite;
  color: var(--accent2);
}

@keyframes pulse-sparkle {
  0%   { transform: translateY(-50%) scale(1);   opacity: 0.8; }
  50%  { transform: translateY(-50%) scale(1.2); opacity: 1; }
  100% { transform: translateY(-50%) scale(1);   opacity: 0.8; }
}

.type-writer {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 4.5s steps(40, end) infinite;
  border-right: 2px solid var(--accent2);
  color: var(--text) !important;
}

@keyframes typing {
  0%, 10%   { width: 0; }
  70%, 100% { width: 100%; }
}

.fake-btn {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 3px 12px var(--gradient-glow);
}

/* ── Floating Extension Panel ── */
.floating-panel {
  position: absolute;
  right: -32px;
  bottom: 24px;
  width: 210px;
  z-index: 10;
  border-color: rgba(175, 82, 222, 0.35) !important;
  animation: float-panel 4s ease-in-out infinite reverse;
}

@keyframes float-panel {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.panel-header {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}

.panel-logo {
  color: var(--accent);
  width: 16px;
  height: 16px;
}

.panel-body {
  padding: 14px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.status-indicator.active {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.5s infinite;
}

.progress-bar-container {
  height: 3px;
  background: var(--surface3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-bar {
  height: 100%;
  background: var(--gradient);
  width: 60%;
  animation: progress 4s ease-in-out infinite;
}

@keyframes progress {
  0%   { width: 10%; }
  50%  { width: 90%; }
  100% { width: 10%; }
}

.stats-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.stat-pill {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--surface2);
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.stat-pill.success {
  background: rgba(52, 199, 89, 0.08);
  color: var(--green);
  border-color: rgba(52, 199, 89, 0.25);
}

/* =========================================================================
   Section Header (shared)
========================================================================= */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================================================
   Features Section
========================================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feature-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: unset;
}

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

/* =========================================================================
   Comparison Table
========================================================================= */
.comparison-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  color: var(--text);
  font-size: 13.5px;
  background: var(--surface2);
}

.comparison-table td {
  color: var(--text-muted);
  font-size: 13px;
}

.comparison-table .td-feature {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.comparison-table .highlight-col {
  background: rgba(255, 59, 48, 0.05);
}

.comparison-table th.highlight-col {
  color: var(--accent);
  background: rgba(255, 59, 48, 0.1);
  border-bottom: 2px solid var(--accent);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.icon-success {
  color: var(--green);
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.icon-fail {
  color: var(--red);
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* =========================================================================
   CTA Section
========================================================================= */
.cta-section {
  padding: 6rem 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.cta-container {
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-color: rgba(175, 82, 222, 0.3) !important;
  background: linear-gradient(135deg, rgba(39, 39, 45, 0.9) 0%, rgba(56, 56, 64, 0.7) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-decoration {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.dec-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.1) 0%, rgba(0,0,0,0) 70%);
}

/* =========================================================================
   Footer
========================================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  background: var(--surface);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-group h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  -webkit-text-fill-color: unset;
  margin-bottom: 0.25rem;
}

.link-group a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.15s;
}

.link-group a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
}

.footer-bottom a {
  color: var(--accent);
  transition: color 0.15s;
}

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

/* =========================================================================
   Responsive Design
========================================================================= */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

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

  .hero-cta-group {
    justify-content: center;
  }

  .glass-mockup.browser-window {
    transform: none !important;
    animation: none;
    margin-top: 2rem;
    overflow: hidden;
  }

  .floating-panel {
    right: -10px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .cta-container {
    padding: 3rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    gap: 2rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }
}
