:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --dark-bg: #0f172a;
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius: 8px;
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text-dark);
  background-color: #f8fafc;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.logo span {
  color: var(--primary);
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Layout Containers */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero Section (CSS Grid) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.badge {
  display: inline-block;
  background-color: #dbeafe;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-bg);
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #e2e8f0;
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: #cbd5e1;
}

/* Hero Preview Card */
.hero-card {
  background: var(--dark-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.code-preview pre {
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.95rem;
  overflow-x: auto;
}

.dots {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red {
  background-color: #ef4444;
}
.yellow {
  background-color: #f59e0b;
}
.green {
  background-color: #10b981;
}

/* Stats Bar (CSS Grid) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  margin: 2rem 0 4rem 0;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Section Title */
.section {
  padding: 2rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--dark-bg);
}

.section-title p {
  color: var(--text-muted);
}

/* Services / Features Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.05);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

/* CTA Banner */
.cta-banner {
  background: var(--dark-bg);
  color: white;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius);
  margin: 4rem 0;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Card Overrides */
.contact-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow:
    0 10px 25px -5px rgba(15, 23, 42, 0.08),
    0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
}

/* Form Structure */
.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark, #0f172a);
}

/* Form Inputs */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius, 8px);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #f8fafc;
  color: var(--text-dark, #0f172a);
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

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

/* Interactive States */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Captcha Styling */
.captcha-wrapper {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius, 8px);
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
  transition:
    transform 0.15s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}
