/* 
  RankSilos Light Mode Design System (Semrush Style)
*/
/* Removed @import to improve performance */

:root {
  /* Core Colors */
  --bg-main: #FFFFFF;
  --bg-surface: #F3F8FB; /* Punchy light blue/teal tint for alternating sections */
  --bg-highlight: #EBF4FA; /* Slightly darker teal/blue tint */
  --bg-purple: #C882F9; /* Vibrant Semrush-style purple for highlight sections */
  
  --brand-orange: #FD7500;
  --brand-orange-light: #FF9F03;
  --brand-teal: #0891B2;
  --brand-navy: #0F172A;
  
  --text-main: #1E293B; /* Dark slate for high contrast */
  --text-muted: #334155;
  
  /* UI Elements */
  --border-light: #E2E8F0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-navy);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= TYPOGRAPHY ================= */
.text-center { text-align: center; }
.section-title { font-size: 2.75rem; margin-bottom: 24px; }
.section-subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 48px; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--brand-navy);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

.btn-accent {
  background: var(--brand-orange);
  color: #fff;
}
.btn-accent:hover {
  background: var(--brand-orange-light);
}

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo img {
  height: 56px;
  display: block;
}

.brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.5px;
}

.text-dark {
  color: var(--brand-navy);
}

.text-gradient {
  background: linear-gradient(90deg, var(--brand-orange) 0%, #EAB308 50%, var(--brand-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brand-navy);
  cursor: pointer;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-links a {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.auth-actions {
  display: flex;
  gap: 12px;
}

/* ================= HERO SECTION ================= */
.hero {
  padding: 160px 0 80px;
  background: 
    radial-gradient(circle at 15% 10%, rgba(8, 145, 178, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(253, 117, 0, 0.04) 0%, transparent 40%),
    var(--bg-surface);
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 24px;
}

/* Form Dual Input */
.hero-form-wrapper {
  max-width: 800px;
  margin: 40px auto 0;
}

.analyzer-form {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border-light);
}

.input-group:nth-child(2) {
  border-right: none;
}

.input-group i {
  position: absolute;
  left: 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.input-group input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 16px 20px 16px 50px;
  font-size: 1rem;
  outline: none;
}

.input-group input::placeholder {
  color: #94A3B8;
}

.analyzer-form .btn-primary {
  padding: 16px 32px;
  border-radius: var(--radius-full);
}

.form-message {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

/* ================= CONTENT SECTIONS ================= */
.section {
  padding: 80px 0;
}

.section.alt-bg {
  background: var(--bg-surface);
}
.section.highlight-bg {
  background: var(--bg-purple);
  color: #fff;
}
.section.highlight-bg .section-subtitle, 
.section.highlight-bg li {
  color: #fff !important;
}
.section.highlight-bg i {
  color: #fff !important;
}

/* Z-Pattern Layouts */
.z-pattern {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
}

.z-pattern:nth-child(even) {
  flex-direction: row-reverse;
}

.z-pattern:last-child {
  margin-bottom: 0;
}

.z-content {
  flex: 1;
}

.z-content h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.z-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.z-content ul {
  margin-bottom: 24px;
}

.z-content ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.z-content ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--brand-teal);
}

.z-graphic {
  flex: 1;
}

.placeholder-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--brand-teal);
}
.placeholder-box i {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.8;
}
.placeholder-box span {
  font-weight: 600;
  color: var(--text-muted);
}

/* Step-by-Step Layout */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--bg-purple);
  line-height: 0.8;
}

.step-text h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

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

/* ================= FAQ SECTION ================= */
.faq-grid {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.faq-question {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-navy);
}

.faq-question i {
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--brand-teal);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  padding: 0 24px 24px;
  max-height: 600px;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand .brand-logo img {
  height: 40px;
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 300px;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
}

.footer-col h2 {
  color: var(--brand-navy);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: var(--text-muted);
}

.footer-col ul a:hover {
  color: var(--brand-orange);
}

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

/* ================= MODAL ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(253, 117, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--brand-orange);
}

.modal-stats {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; }
.stat-value { font-size: 1.15rem; font-weight: 700; color: var(--brand-navy); }

/* ================= PAGE LAYOUTS ================= */
/* Contact Page */
.page-header { padding: 160px 0 60px; text-align: center; background: var(--bg-surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: 1000px; margin: 0 auto; align-items: start; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 40px; }
.contact-method { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
.contact-method i { font-size: 1.5rem; color: var(--brand-teal); margin-top: 4px; }
.contact-method h4 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-method p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }
.contact-form-card { background: #fff; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border-light); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand-teal); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Newsletter Page */
.newsletter-banner { background: var(--bg-surface); border-radius: var(--radius-lg); padding: 80px 40px; margin: 40px auto; max-width: 900px; display: flex; align-items: center; gap: 64px; }
.newsletter-graphic { flex: 1; position: relative; height: 200px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border-light); }
.newsletter-graphic i { font-size: 5rem; color: var(--brand-orange); }
.newsletter-content { flex: 1.5; }
.newsletter-content h2 { font-size: 2rem; margin-bottom: 12px; }
.newsletter-content p { color: var(--text-muted); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input { flex: 1; padding: 14px 20px; border: 1px solid var(--border-light); border-radius: var(--radius-md); font-size: 1rem; outline: none; }
.newsletter-form button { padding: 14px 24px; }

/* Tools Page */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 40px; }
.tool-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 32px; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-icon { width: 48px; height: 48px; background: var(--bg-highlight); color: var(--brand-teal); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 24px; }
.tool-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.tool-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; flex: 1; }

/* Blogs Page */
/* ================= OPENAI INSPIRED BLOG LAYOUT ================= */
.openai-hero-grid { 
  display: grid; 
  grid-template-columns: 2fr 1fr; 
  gap: 32px; 
  margin-bottom: 48px; 
}

.openai-hero-main {
  display: flex;
  flex-direction: column;
}

.openai-hero-main .news-img {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 4px; /* Minimal border radius */
  margin-bottom: 16px;
}

.openai-hero-main h2 {
  font-size: 2.5rem;
  font-weight: 500; /* Slightly thinner like OpenAI */
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.openai-hero-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.openai-hero-side .news-card {
  display: flex;
  flex-direction: column;
}

.openai-hero-side .news-img {
  height: 200px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.news-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 32px; 
}

.news-card { 
  display: flex; 
  flex-direction: column; 
}

.news-card .news-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin-bottom: 12px;
  background-color: var(--bg-surface);
}

.openai-meta {
  color: #6e6e73;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.openai-meta strong {
  color: var(--brand-navy);
  font-weight: 600;
}

.news-card h3 { 
  font-size: 1.25rem; 
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px; 
}

.news-card p { 
  color: var(--text-muted); 
  font-size: 0.95rem; 
  display: -webkit-box;
  -webkit-line-clamp: 2; /* truncate after 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .z-pattern, .z-pattern:nth-child(even) {
    flex-direction: column;
    gap: 40px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-right { 
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    gap: 24px;
    align-items: flex-start;
  }
  .nav-right.active { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; width: 100%; }
  .analyzer-form {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 16px;
  }
  .input-group { border-right: none; border-bottom: 1px solid var(--border-light); padding: 8px 0; }
  .analyzer-form .btn-primary { margin-top: 16px; border-radius: var(--radius-md); }
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  
  /* New Pages Responsive */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .newsletter-banner { flex-direction: column; padding: 40px 24px; gap: 32px; }
  .newsletter-form { flex-direction: column; }
  .openai-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .openai-hero-main .news-img { height: 250px; }
  .openai-hero-side .news-img { height: 200px; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ================= COOKIE BANNER ================= */
.cookie-banner {
  position: fixed;
  bottom: -100px; /* Hidden initially */
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  padding: 16px 0;
  z-index: 9999;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--brand-orange);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-accept-cookies {
  background: var(--brand-orange);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn-accept-cookies:hover {
  background: #ea580c;
  transform: translateY(-2px);
}

.btn-reject-cookies {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-reject-cookies:hover {
  background: var(--bg-alt);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}
