/* ========== CSS RESET & VARIABLES ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-50: #eef9ff;
  --blue-100: #d9f1ff;
  --blue-200: #bbe7ff;
  --blue-300: #8bd9ff;
  --blue-400: #4fc3ff;
  --blue-500: #2bb0ee;
  --blue-600: #0f8fcc;
  --blue-700: #0d73a5;
  --blue-800: #126088;
  --blue-900: #144f70;
  --blue-950: #0e334a;

  --gray-50: #f8fafb;
  --gray-100: #f1f4f6;
  --gray-200: #e2e7ec;
  --gray-300: #c9d1d9;
  --gray-400: #a3adb9;
  --gray-500: #7b8794;
  --gray-600: #5f6b78;
  --gray-700: #4a545f;
  --gray-800: #3a424b;
  --gray-900: #282e34;
  --gray-950: #181c20;

  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 12px 48px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea { font-family: inherit; }

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.header.scrolled { box-shadow: var(--shadow-md); }

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

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

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  display: block;
  margin-top: -2px;
}

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

.nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.nav a:hover, .nav a.active {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav-cta {
  background: var(--gray-900) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--gray-700) !important;
  color: var(--white) !important;
}

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

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========== PAGE HERO ========== */
.page-hero {
  padding: 140px 0 80px;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(43,176,238,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gray-950);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-hero h1 span { color: var(--blue-500); }

.page-hero p {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.7;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--gray-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--gray-800);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-500);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-blue:hover {
  background: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(43, 176, 238, 0.35);
}

/* ========== CARDS ========== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.card:hover {
  border-color: var(--blue-200);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.35s ease;
}

.card:hover .card-icon { background: var(--blue-500); }

.card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--blue-500);
  transition: color 0.35s ease;
}

.card:hover .card-icon svg { color: var(--white); }

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========== FORMS ========== */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: all 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(43, 176, 238, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--blue-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--blue-600);
  box-shadow: 0 6px 24px rgba(43, 176, 238, 0.3);
  transform: translateY(-2px);
}

/* ========== CTA BANNER ========== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-950) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(43,176,238,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.05rem;
  color: var(--gray-400);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: color 0.2s;
}

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

/* ========== MOBILE NAV ========== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-800);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.mobile-nav a:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-700);
  line-height: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-hero { padding: 120px 0 60px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
