/* ===== CSS Variables ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo:hover {
  color: var(--dark);
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn img {
  width: 28px;
  height: 28px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu-links a {
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

/* ===== Hero Section ===== */
.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 100px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.95;
}

/* ===== Buttons ===== */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: 1.125rem;
  font-weight: 600;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.cta-btn:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  padding: 18px 35px;
  border-radius: 50px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== Section Styles ===== */
section {
  padding: 80px 0;
}

.bg-alt {
  background: var(--gray-100);
}

.bg-gradient-light {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

/* ===== Features Grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-icon img {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.step p {
  color: var(--gray-600);
}

/* ===== CTA Container ===== */
.cta-container {
  text-align: center;
  margin-top: 50px;
}

.mt-5 {
  margin-top: 30px;
}

.mt-4 {
  margin-top: 20px;
}

/* ===== FAQ ===== */
.faq-item {
  max-width: 800px;
  margin: 0 auto 15px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 25px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] img {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 25px 20px;
  color: var(--gray-600);
}

.faq-answer.open {
  max-height: 500px;
}

/* ===== Footer ===== */
footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-section p {
  line-height: 1.7;
}

.footer-text {
  color: var(--gray-400);
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-section a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 30px;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ===== Text Utilities ===== */
.text-center {
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu.active {
    display: block;
  }

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

  .features {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cta-floating {
    bottom: 20px;
    right: 20px;
    padding: 15px 30px;
    font-size: 1rem;
  }
}

/* ===== Prevent horizontal overflow ===== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== Blog Article Styles ===== */
.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.article-container > p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.article-container > h2 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  color: var(--dark);
}

.article-container > h3 {
  font-size: 1.25rem;
  margin: 30px 0 15px;
  color: var(--dark);
}

.article-container > ul {
  margin: 0 0 20px 20px;
  line-height: 1.8;
  list-style: disc;
}

.publish-date {
  color: var(--gray-600);
  margin-bottom: 30px;
}

.back-to-blog {
  text-align: center;
  margin-bottom: 20px;
}

.back-to-blog a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.back-to-blog a:hover {
  text-decoration: underline;
}

.key-takeaway-box {
  margin-top: 50px;
  padding: 30px;
  background: var(--gray-100);
  border-radius: var(--radius);
}

.key-takeaway-box h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

.key-takeaway-box p {
  color: var(--gray-600);
  line-height: 1.8;
}

.continue-reading {
  margin-top: 50px;
  border-top: 1px solid var(--gray-200);
  padding-top: 30px;
}

.continue-reading p {
  margin-bottom: 10px;
  color: var(--gray-600);
}

.related-list {
  list-style: none;
}

.article-link {
  color: var(--primary);
  text-decoration: none;
}

.article-link:hover {
  text-decoration: underline;
}

/* ===== Read More Button ===== */
.read-more-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 15px;
  border: none;
  cursor: pointer;
}

.read-more-btn:hover {
  background: #fbbf24;
  transform: translateY(-2px);
}

.doc-section ul {
  margin: 10px 0 10px 20px;
  list-style: disc;
}

/* ===== Container > H2 rule ===== */
.container > h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
  color: var(--dark);
}

/* ===== Utility: margin bottom ===== */
.mb-5 {
  margin-bottom: 30px;
}

/* ===== Contact Page ===== */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-container > h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.contact-container > p {
  margin-bottom: 30px;
  color: var(--gray-600);
}

.contact-box {
  text-align: left;
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.contact-box h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

.contact-box p {
  color: var(--gray-600);
  margin-bottom: 20px;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  word-break: break-all;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.response-time-box {
  margin-top: 40px;
  text-align: left;
  background: var(--gray-100);
  padding: 30px;
  border-radius: var(--radius);
}

.response-time-box h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

.response-time-box p {
  color: var(--gray-600);
  margin-bottom: 10px;
}

.contact-cta-container {
  text-align: center;
  padding: 30px 0;
}

/* ===== How It Works Pro Tips ===== */
.pro-tips-box {
  max-width: 700px;
  margin: 60px auto 0;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pro-tips-box h3 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--dark);
}

.pro-tips-box ul {
  line-height: 2;
  color: var(--gray-600);
}

/* ===== Safety Tips & Dating Tips Key Takeaway ===== */
.key-takeaway-box {
  margin-top: 50px;
  padding: 30px;
  background: var(--gray-100);
  border-radius: var(--radius);
}

.key-takeaway-box h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

.key-takeaway-box p {
  color: var(--gray-600);
  line-height: 1.8;
}

/* ===== Community Guidelines ===== */
.promise-card {
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  color: white;
  padding: 30px;
  border-radius: var(--radius);
}

.promise-card .feature-icon {
  color: white;
  margin-bottom: 15px;
}

.promise-card .feature-icon img {
  filter: brightness(0) invert(1);
}

.promise-card h3 {
  color: white;
  margin-bottom: 10px;
}

.promise-card p {
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
}

.guidelines-section h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
  color: var(--dark);
}

.guidelines-list {
  margin: 0 0 20px 20px;
  line-height: 1.8;
  list-style: disc;
}

.guidelines-item {
  margin-bottom: 15px;
}

.guidelines-item h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--success);
}

.danger-item h3 {
  color: var(--danger) !important;
}

.enforcement-box {
  margin-top: 50px;
  padding: 30px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.enforcement-box h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

.enforcement-box p {
  margin-bottom: 10px;
}

.enforcement-box p + p {
  margin-top: 15px;
}

/* ===== Community Guidelines sections ===== */
.do-section .feature-card h3,
.do-section .feature-icon {
  color: var(--success);
}

.dont-section .feature-card h3,
.dont-section .feature-icon {
  color: var(--danger);
}

.enforcement-box ul {
  margin-left: 20px;
  list-style: disc;
  line-height: 1.8;
}

/* ===== Privacy & Terms Documents ===== */
.doc-section {
  max-width: 800px;
  margin: 0 auto;
}

.doc-section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.doc-section h3 {
  font-size: 1.25rem;
  margin: 25px 0 10px;
  color: var(--dark);
}

.doc-section p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.doc-section ul {
  margin: 10px 0 10px 20px;
  list-style: disc;
  line-height: 1.7;
}

/* ===== FAQ Page ===== */
.faq-answer p {
  color: var(--gray-600);
}

/* ===== Contact CTA container inline fix ===== */
.contact-cta-container {
  text-align: center;
  padding: 30px 0;
}

/* ===== Narrow Container ===== */
.narrow-container {
  max-width: 700px;
  margin: 0 auto;
}
