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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #212121;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

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

/* ========== Typography ========== */
h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #1863DC;
  color: #fff;
}

.btn-primary:hover {
  background: #1454b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 99, 220, 0.3);
}

.btn-outline {
  background: transparent;
  color: #1863DC;
  border: 2px solid #1863DC;
}

.btn-outline:hover {
  background: #1863DC;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #1863DC;
}

.btn-white:hover {
  background: #f0f4ff;
  transform: translateY(-1px);
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  border-bottom-color: #ebebeb;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.07);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1863DC;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #212121;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========== Hero ========== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(165deg, #f7faff 0%, #eef4ff 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(24, 99, 220, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(24, 99, 220, 0.08);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1863DC;
  margin-bottom: 24px;
}

.hero-content h1 {
  margin-bottom: 20px;
  color: #111;
}

.hero-content h1 .highlight {
  color: #1863DC;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  color: #666;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e0e7f1;
}

.hero-stat h4 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1863DC;
}

.hero-stat span {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration {
  width: 100%;
  max-width: 480px;
}

/* ========== Section Shared ========== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: #f8fafd;
}

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

.section-header .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(24, 99, 220, 0.08);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1863DC;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
}

/* ========== Features Grid ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  border-color: #d4e2f7;
  box-shadow: 0 8px 30px rgba(24, 99, 220, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-icon.blue { background: rgba(24, 99, 220, 0.1); color: #1863DC; }
.feature-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.feature-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.feature-icon.orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.feature-icon.red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.feature-icon.teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }

.feature-card h3 {
  margin-bottom: 10px;
  color: #111;
}

.feature-card p {
  font-size: 0.95rem;
  color: #666;
}

/* ========== How It Works ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, #1863DC, #8b5cf6, #14b8a6, #10b981);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1863DC;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(24, 99, 220, 0.3);
}

.step-card:nth-child(2) .step-number { background: #8b5cf6; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.step-card:nth-child(3) .step-number { background: #14b8a6; box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3); }
.step-card:nth-child(4) .step-number { background: #10b981; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }

.step-card h3 {
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
}

/* ========== Use Cases ========== */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.usecase-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.usecase-card:hover {
  border-color: #d4e2f7;
  box-shadow: 0 4px 20px rgba(24, 99, 220, 0.06);
}

.usecase-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(24, 99, 220, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ========== Pricing ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: #1863DC;
  box-shadow: 0 8px 40px rgba(24, 99, 220, 0.15);
  transform: scale(1.03);
}

.pricing-card.featured .pricing-badge {
  display: inline-block;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #1863DC;
  color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin: 16px 0;
}

.pricing-card .price span {
  font-size: 1rem;
  color: #888;
  font-weight: 400;
}

.pricing-features {
  text-align: left;
  margin: 24px 0 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: #555;
}

.pricing-features li svg {
  flex-shrink: 0;
  color: #10b981;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.active {
  border-color: #d4e2f7;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #1863DC;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #999;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: #1863DC;
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

/* ========== CTA Banner ========== */
.cta-banner {
  background: linear-gradient(135deg, #1863DC 0%, #3b82f6 50%, #1e40af 100%);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.contact-detail svg {
  color: #1863DC;
  flex-shrink: 0;
}

.contact-detail span {
  color: #555;
}

.contact-form {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1863DC;
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== Footer ========== */
.footer {
  background: #0f172a;
  color: #fff;
  padding: 64px 0 0;
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: #1863DC;
  color: #fff;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ========== Legal Pages ========== */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal-page .legal-updated {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.legal-page h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.legal-page p,
.legal-page li {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.8;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page a {
  color: #1863DC;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ========== Animations ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Mobile Nav ========== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
  z-index: 999;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps-grid::before { display: none; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 64px 0; }

  .nav-links, .header-cta { display: none; }
  .mobile-toggle { display: flex; }

  .hero { padding: 110px 0 60px; }
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .cta-banner { padding: 48px 24px; border-radius: 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}
