/* AutoRingBack - Main CSS */
:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #dcfce7;
  --dark: #0f172a;
  --dark2: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 22px; font-weight: 800; text-decoration: none; color: var(--dark);
}
.logo span { color: var(--green); }
.nav-links {
  display: flex; align-items: center; gap: 36px; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--gray); font-weight: 500; font-size: 15px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--dark); }
.nav-cta {
  display: flex; align-items: center; gap: 12px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px; font-weight: 600;
  font-size: 15px; text-decoration: none; transition: all .2s; cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--green); color: white;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--dark); border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 10px; }
.btn-xl { padding: 18px 44px; font-size: 18px; border-radius: 12px; }

/* HERO */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 60%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-light); color: var(--green-dark);
  padding: 6px 16px; border-radius: 100px; font-size: 14px; font-weight: 600;
  margin-bottom: 28px;
}
.hero-badge span { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; line-height: 1.1; letter-spacing: -2px;
  max-width: 900px; margin: 0 auto 24px;
}
h1 em { color: var(--green); font-style: normal; }
.hero p {
  font-size: 20px; color: var(--gray); max-width: 600px; margin: 0 auto 44px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; justify-content: center; margin-top: 72px;
  padding-top: 48px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--dark); }
.stat-label { font-size: 14px; color: var(--gray); margin-top: 4px; }

/* PHONE MOCKUP */
.hero-visual {
  margin: 64px auto 0;
  max-width: 700px;
  background: var(--dark2);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.sms-bubble {
  background: var(--green); color: white; border-radius: 18px 18px 4px 18px;
  padding: 14px 20px; font-size: 15px; max-width: 320px; margin-left: auto;
  margin-bottom: 8px;
}
.sms-label { color: #94a3b8; font-size: 12px; text-align: right; margin-bottom: 24px; }
.sms-info { color: #64748b; font-size: 13px; }
.sms-info strong { color: #22c55e; }

/* SECTIONS */
section { padding: 100px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  text-align: center; color: var(--green); font-weight: 700;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
h2 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.15;
}
.section-title { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-title p { color: var(--gray); font-size: 18px; margin-top: 16px; }

/* HOW IT WORKS */
.how-bg { background: var(--light); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step {
  background: white; border-radius: 16px; padding: 36px 28px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.step::before {
  content: attr(data-num);
  position: absolute; top: -10px; right: 20px;
  font-size: 80px; font-weight: 900; color: var(--green-light);
  line-height: 1;
}
.step-icon { font-size: 36px; margin-bottom: 16px; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--gray); font-size: 15px; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
  border: 1.5px solid var(--border); border-radius: 16px; padding: 32px;
  transition: all .2s;
}
.feature-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px; background: var(--green-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--gray); font-size: 15px; }

/* PRICING */
.pricing-bg { background: var(--dark); color: white; }
.pricing-bg h2 { color: white; }
.pricing-bg .section-title p { color: #94a3b8; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.price-card {
  background: var(--dark2); border: 1.5px solid #334155; border-radius: 20px; padding: 40px 32px;
}
.price-card.popular {
  border-color: var(--green); background: linear-gradient(145deg, #052e16, #14532d);
  position: relative;
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: white; padding: 4px 20px;
  border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 700; color: #94a3b8; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.plan-price { font-size: 54px; font-weight: 900; color: white; line-height: 1; }
.plan-price span { font-size: 20px; font-weight: 500; color: #64748b; }
.plan-desc { color: #94a3b8; font-size: 14px; margin: 12px 0 28px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.plan-features li { display: flex; align-items: center; gap: 10px; color: #cbd5e1; font-size: 15px; }
.plan-features li::before { content: "✓"; color: var(--green); font-weight: 700; }
.btn-plan { width: 100%; text-align: center; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial {
  border: 1.5px solid var(--border); border-radius: 16px; padding: 32px;
}
.stars { color: #f59e0b; font-size: 18px; margin-bottom: 16px; }
.testimonial p { color: var(--gray); font-size: 16px; font-style: italic; margin-bottom: 24px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.reviewer-name { font-weight: 700; font-size: 15px; }
.reviewer-title { color: var(--gray); font-size: 13px; }

/* FAQ */
.faq-bg { background: var(--light); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: white; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--border); }
.faq-q {
  padding: 22px 24px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; font-size: 16px;
}
.faq-q:hover { color: var(--green); }
.faq-a { padding: 0 24px 22px; color: var(--gray); font-size: 15px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-arrow { transition: transform .2s; }

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), #15803d);
  text-align: center; color: white; border-radius: 24px;
  padding: 80px 40px; margin: 0 24px;
}
.cta-section h2 { color: white; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 20px; margin: 20px 0 40px; }
.btn-white { background: white; color: var(--green-dark); font-weight: 700; }
.btn-white:hover { background: var(--green-light); }

/* BLOG CARDS */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.blog-card {
  border-radius: 16px; overflow: hidden; border: 1.5px solid var(--border);
  transition: all .2s;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-thumb {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.blog-body { padding: 28px; }
.blog-tag {
  background: var(--green-light); color: var(--green-dark); padding: 4px 12px;
  border-radius: 100px; font-size: 12px; font-weight: 700; display: inline-block; margin-bottom: 12px;
}
.blog-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { color: var(--gray); font-size: 14px; margin-bottom: 16px; }
.blog-meta { display: flex; gap: 16px; color: #94a3b8; font-size: 13px; }
.blog-card a { text-decoration: none; color: inherit; }

/* FOOTER */
footer {
  background: var(--dark); color: #94a3b8; padding: 72px 24px 36px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid #334155;
}
.footer-brand .logo { color: white; font-size: 20px; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.8; }
footer h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 20px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: #94a3b8; text-decoration: none; font-size: 14px; }
footer ul a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
  font-size: 13px;
}
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: var(--green); }

/* MOBILE */
.hamburger { display: none; background: none; border: none; cursor: pointer; font-size: 24px; }
@media(max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 120px 24px 60px; }
  .hero-stats { gap: 32px; }
  .cta-section { margin: 0 16px; padding: 56px 24px; }
}

/* PAGE HEADER */
.page-header {
  padding: 140px 24px 80px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  text-align: center;
}
.page-header h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 20px; }
.page-header p { color: var(--gray); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--gray); font-size: 16px; margin-bottom: 20px; line-height: 1.8; }
.value-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.value-item { display: flex; align-items: flex-start; gap: 16px; }
.value-icon { font-size: 24px; margin-top: 2px; }
.value-item h4 { font-weight: 700; margin-bottom: 4px; }
.value-item p { color: var(--gray); font-size: 14px; }
.about-visual {
  background: var(--light); border-radius: 24px; padding: 48px; text-align: center;
  border: 1.5px solid var(--border);
}
.big-emoji { font-size: 100px; }
@media(max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-form { background: white; border: 1.5px solid var(--border); border-radius: 20px; padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: inherit; transition: border-color .2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { height: 120px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-card { display: flex; gap: 20px; align-items: flex-start; }
.contact-icon {
  width: 52px; height: 52px; background: var(--green-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.contact-card h4 { font-weight: 700; margin-bottom: 6px; }
.contact-card p { color: var(--gray); font-size: 14px; }
@media(max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* BLOG POST */
.post-header { padding: 140px 24px 60px; background: linear-gradient(180deg, #f0fdf4, white); }
.post-content { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.post-content h2 { font-size: 28px; margin: 40px 0 16px; }
.post-content p { color: #334155; font-size: 17px; line-height: 1.9; margin-bottom: 24px; }
.post-content ul { padding-left: 24px; margin-bottom: 24px; color: #334155; font-size: 17px; line-height: 1.9; }
.post-content ul li { margin-bottom: 8px; }
.post-meta { display: flex; gap: 20px; color: var(--gray); font-size: 14px; margin-bottom: 32px; align-items: center; flex-wrap: wrap; }
.post-tag { background: var(--green-light); color: var(--green-dark); padding: 4px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.highlight-box {
  background: var(--green-light); border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0; padding: 24px 28px; margin: 32px 0;
}
.highlight-box p { margin: 0; color: var(--green-dark); font-weight: 500; }
