@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #f8fafc;
  --text-dark: #0e1f30;
  --text-light: #45566b;
  --bg-main: #ffffff;
  --bg-gradient: linear-gradient(135deg, #eaf1ff 0%, #dbe4f0 100%);
  --border-color: #dbe4f0;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background Effects */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-effects::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: -1;
}

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

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 24px;
  background: linear-gradient(to right, #0e1f30, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1 .highlight {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  text-align: center;
}

p {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 32px;
}
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background-color: white;
  color: var(--text-dark);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  display: flex;
  flex-col;
  align-items: center;
}

.hero p {
  margin: 0 auto 32px auto;
}

.hero-actions {
  margin-bottom: 64px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
}

.hero .hero-trial-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: none;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-trial-note svg {
  width: 17px;
  height: 17px;
  color: #10b981;
  flex-shrink: 0;
}

.hero-trial-note strong {
  color: var(--text-dark);
  font-weight: 600;
}

.hero-media {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(135deg, #eaf1ff 0%, #dbe4f0 100%);
  box-shadow: var(--shadow-glow);
}
.hero-media-inner {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  height: 40px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #cbd5e1;
}
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Fallback if no image */
.demo-placeholder {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #94a3b8;
  font-weight: 500;
}

/* Sections */
section {
  padding: 100px 0;
}

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

.feature-card {
  background: #f3f7fd;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eaf1ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #1e3a8a;
  transition: color 0.2s ease;
}
.feature-card:hover h3 {
  color: #2563eb;
}
.feature-card p { margin-bottom: 0; font-size: 1rem; }

/* Pricing */
.pricing-section {
  background-color: #f8fafc;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 48px auto 0;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  margin: 16px 0;
  color: var(--text-dark);
}
.price span {
  font-size: 1.125rem;
  color: var(--text-light);
  font-weight: 500;
}
.pricing-features {
  list-style: none;
  margin: 24px 0 32px;
  flex-grow: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.pricing-features svg {
  color: #10b981;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.pricing-card .btn { width: 100%; }

.pricing-trial-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: none;
  margin: 0 0 14px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.pricing-trial-note svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f3f7fd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.blog-img {
  height: 200px;
  background: #dbe4f0;
  position: relative;
  overflow: hidden;
}
.blog-img img {
  filter: saturate(0.15) brightness(1.55);
}
.blog-content {
  padding: 24px;
}
.blog-date {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: block;
}
.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #1e3a8a;
  transition: color 0.2s ease;
}
.blog-card:hover h3 {
  color: #2563eb;
}
.blog-card p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  background: white;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

/* Contact Section */
.contact-section {
  background-color: #f8fafc;
  text-align: center;
}

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.contact-card p {
  margin: 0 auto;
}

.contact-card p:first-of-type {
  margin-bottom: 2px;
}

.contact-card p:last-of-type {
  margin-bottom: 28px;
}

.contact-email {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: underline;
}

.contact-email:hover {
  color: var(--primary-hover);
}

@media (max-width: 768px) {
  nav ul {
    display: none; /* simple mobile nav hide for demo */
  }
  .nav-cta {
    display: none;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-trial-note {
    padding: 0 12px;
  }
}

/* Blog Article Pages */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 24px 100px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover {
  text-decoration: underline;
}

.article-container .blog-date {
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
}

.article-container h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: left;
}

.article-hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  display: block;
  box-shadow: var(--shadow-lg);
}

.article-container h2 {
  text-align: left;
  font-size: 1.6rem;
  margin: 40px 0 16px;
}

.article-container p {
  max-width: 100%;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.article-container code {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  color: var(--text-dark);
}

.article-container pre {
  background: #0e1f30;
  color: #eaf1ff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.article-container pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-container ol,
.article-container ul {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin: 0 0 24px 24px;
}
.article-container li {
  margin-bottom: 8px;
}
