/* ==========================================================================
   RewriteAI Landing Page Stylesheet
   Modern Glassmorphism & Cyber-clean Aesthetics
   ========================================================================== */

:root {
  --bg-dark: #090d16;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border: rgba(56, 189, 248, 0.15);
  --border-glow: rgba(56, 189, 248, 0.4);
  
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.35);
  --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  
  --accent-cyan: #22d3ee;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Glowing Orbs */
.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -150px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
}

.bg-orb-2 {
  width: 450px;
  height: 450px;
  top: 40%;
  right: -100px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}

.bg-orb-3 {
  width: 550px;
  height: 550px;
  bottom: -150px;
  left: 20%;
  background: radial-gradient(circle, #0f766e 0%, transparent 70%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 13, 22, 0.85);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}

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

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

/* Lang switcher */
.lang-toggle {
  display: inline-flex;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-btn.active {
  background: var(--primary);
  color: #04101e;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Flag SVG Data URIs */
.flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

.flag-tr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23E30A17'/%3E%3Ccircle cx='10' cy='10' r='6' fill='white'/%3E%3Ccircle cx='12' cy='10' r='4.8' fill='%23E30A17'/%3E%3Cpolygon points='17,10 18.5,6.5 22,8.8 19.5,11.8 22,11' fill='white' transform='rotate(-18,17,10)'/%3E%3C/svg%3E");
}

.flag-gb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0%2C0 L60%2C30 M60%2C0 L0%2C30' stroke='white' stroke-width='8'/%3E%3Cpath d='M0%2C0 L60%2C30 M60%2C0 L0%2C30' stroke='%23C8102E' stroke-width='5'/%3E%3Cpath d='M30%2C0 L30%2C30 M0%2C15 L60%2C15' stroke='white' stroke-width='12'/%3E%3Cpath d='M30%2C0 L30%2C30 M0%2C15 L60%2C15' stroke='%23C8102E' stroke-width='7'/%3E%3C/svg%3E");
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: var(--transition);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 90px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Store Download Buttons Grid */
.store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.store-card-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.store-card-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.store-card-btn:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 24px -6px var(--primary-glow);
}

.store-card-btn:hover::before {
  opacity: 1;
}

.store-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.store-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.store-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-weight: 600;
}

/* ==========================================================================
   Cat Mascot Companion (Sevimli Kedi Bölümü)
   ========================================================================== */
.cat-companion-wrapper {
  margin: 30px auto;
  max-width: 580px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(56, 189, 248, 0.06) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(8px);
  position: relative;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cat-avatar-box {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  animation: catFloat 3s ease-in-out infinite alternate;
}

@keyframes catFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.cat-svg {
  width: 48px;
  height: 48px;
}

.cat-speech-bubble {
  flex: 1;
}

.cat-name-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.cat-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.cat-purr-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cat-purr-btn:hover {
  background: var(--accent-amber);
  color: #090d16;
  transform: scale(1.05);
}

/* ==========================================================================
   Interactive Extension Mockup Preview
   ========================================================================== */
.preview-section {
  padding: 40px 0 80px;
}

.mockup-window {
  background: #0f172a;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.15);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.mockup-header {
  background: #1e293b;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 8px;
}

.mockup-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.mockup-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.82rem;
  }
  .nav-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }
  .nav-links {
    display: none;
  }
  .mockup-body {
    grid-template-columns: 1fr;
  }
}

.mockup-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-box-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.mockup-content {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 90px;
}

.mockup-result {
  color: var(--primary);
  font-weight: 500;
}

.mockup-tones-bar {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.mockup-tone-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.mockup-tone-chip.active, .mockup-tone-chip:hover {
  background: var(--primary);
  color: #04101e;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Comparison Showcase Table
   ========================================================================== */
.comparison-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 650px;
}

.comparison-table th {
  background: rgba(30, 41, 59, 0.6);
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}

.comparison-table td {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  line-height: 1.6;
  vertical-align: top;
}

.comparison-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.03);
}

.comp-badge-in {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.comp-tag-flat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.comp-tag-pro {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.comp-tag-street {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

/* ==========================================================================
   Providers / Models Section
   ========================================================================== */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.provider-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.provider-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.provider-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  flex-shrink: 0;
}

.provider-name {
  font-size: 1rem;
  font-weight: 700;
}

.provider-tier {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* ==========================================================================
   CTA Footer
   ========================================================================== */
.cta-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.15) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  text-align: center;
  margin-bottom: 60px;
}

.cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Privacy Policy Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-body h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 22px 0 8px;
}

.modal-body p, .modal-body li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

