/* ── Design Tokens (Premium Light Mode) ── */
:root {
  --bg: #FAF9F6; /* off-white background */
  --bg-2: #FFFFFF; /* Pure white for cards */
  --bg-3: #F3F4F6;
  --surface: rgba(0, 0, 0, 0.03);
  --surface-hover: rgba(0, 0, 0, 0.06);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text: #111827; /* Deep charcoal for primary text */
  --text-muted: #4B5563; /* Slate gray for secondary text */
  --text-dim: #6B7280;
  
  --accent: #2563EB; /* Premium Royal Blue */
  --accent-2: #3B82F6;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --green: #10B981;
  --green-glow: rgba(16, 185, 129, 0.15);
  --amber: #F59E0B;
  --rose: #EF4444;
  --cyan: #06B6D4;
  
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.08);
  
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', 'DM Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, 
*::after {
   box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
ul { list-style: none; }

/* ── Utilities ── */
.container { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }

/* ── Animated Background Mesh ── */
.bg-mesh {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background-color: var(--bg);
}
.bg-mesh::before, .bg-mesh::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4;
  animation: meshFloat 20s ease-in-out infinite alternate;
}
.bg-mesh::before {
  width: 600px; height: 600px; top: -10%; left: -5%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}
.bg-mesh::after {
  width: 500px; height: 500px; bottom: -10%; right: -5%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  animation-delay: -10s;
}
@keyframes meshFloat {
  to { transform: translate(60px, 40px) scale(1.1); }
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  width: 100%;
  max-width: 1440px; /* Expands header out more to the left/right */
  padding: 0 1rem;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  padding: 0.55rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--text-muted); transition: 0.2s;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--text); background: var(--surface-hover); }

.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  font-weight: 600 !important; padding: 0.55rem 1.3rem !important;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: 0.25s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); background: var(--accent-2) !important; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ── Hero ── */
.hero { padding: 6rem 0 5rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-muted); max-width: 520px;
  margin-bottom: 2rem; animation: fadeInUp 0.6s 0.2s ease both;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 0.6s 0.3s ease both; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius); font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: 0.25s; font-size: 0.95rem;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); background: var(--accent-2); }
.btn-ghost {
  background: var(--bg-2); color: var(--text);
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.btn-ghost:hover { background: var(--bg); border-color: var(--border-hover); box-shadow: var(--shadow); }

/* Hero Visual (Relevant Mockup) */
.hero-visual { position: relative; animation: fadeInUp 0.8s 0.4s ease both; }
.hero-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.5rem;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--accent-2));
}
.hero-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.hero-card-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-card-title { color: var(--text-dim); font-size: 0.8rem; font-weight: 600; font-family: monospace; }

/* Relevant Dashboard Mockup Classes */
.ui-mockup-body { display: flex; flex-direction: column; gap: 1.25rem; }
.ui-mockup-top { display: flex; align-items: center; gap: 1rem; }
.ui-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.ui-greeting { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.ui-subtext { font-size: 0.85rem; color: var(--text-muted); }

.ui-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ui-stat-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.8rem; display: flex; align-items: center; gap: 0.75rem; }
.ui-stat-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.ui-stat-val { font-weight: 800; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
.ui-stat-lbl { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

.ui-message-box { background: var(--surface); border-radius: var(--radius-sm); padding: 1rem; display: flex; gap: 0.75rem; border: 1px solid var(--border); }
.ui-msg-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: var(--shadow); flex-shrink: 0; }
.ui-msg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.ui-msg-name { font-weight: 700; font-size: 0.85rem; }
.ui-msg-time { font-size: 0.7rem; color: var(--text-dim); }
.ui-msg-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

/* Floating cards */
.float-badge {
  position: absolute; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.75rem;
  animation: float 4s ease-in-out infinite; z-index: 10;
}
.float-badge-left { left: -3rem; bottom: 3rem; }
.float-badge-right { right: -2rem; animation-delay: -2s; }
.float-icon { font-size: 1.4rem; background: var(--bg); padding: 0.4rem; border-radius: 8px; border: 1px solid var(--border); }
.float-label { font-weight: 800; font-size: 0.85rem; color: var(--text); }
.float-sub { color: var(--text-dim); font-size: 0.8rem; font-weight: 600; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Section Common ── */
.section { padding: 5.5rem 0; }
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-heading h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem;
}
.section-heading p { color: var(--text-muted); font-size: 1.08rem; }
.section-label {
  display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px;
  background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--accent); font-weight: 700; font-size: 0.82rem;
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feature-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; position: relative;
  overflow: hidden; transition: 0.3s; box-shadow: var(--shadow);
}
.feature-card:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: 0.3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
  margin-bottom: 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.feature-icon.i-purple { background: rgba(139, 92, 246, 0.15); }
.feature-icon.i-green { background: rgba(16, 185, 129, 0.15); }
.feature-icon.i-cyan { background: rgba(6, 182, 212, 0.15); }
.feature-icon.i-amber { background: rgba(245, 158, 11, 0.15); }
.feature-icon.i-rose { background: rgba(239, 68, 68, 0.15); }
.feature-icon.i-blue { background: rgba(59, 130, 246, 0.15); }
.feature-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ── How It Works ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 44px; left: 15%; right: 15%;
  height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent);
  opacity: 0.2;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 1.2rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  background: var(--bg-2); border: 2px solid var(--accent);
  color: var(--accent); box-shadow: 0 4px 12px var(--accent-glow);
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; max-width: 280px; margin: 0 auto; }

/* ── Portals ── */
.portals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.portal-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem; position: relative;
  overflow: hidden; transition: 0.3s; box-shadow: var(--shadow);
}
.portal-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.portal-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0.02;
  background: radial-gradient(circle at 30% 20%, var(--accent), transparent 60%);
}
.portal-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.portal-icon { font-size: 2.2rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.portal-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--text); }
.portal-features { display: grid; gap: 0.75rem; position: relative; z-index: 1; }
.portal-feat {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  background: var(--bg); font-size: 0.95rem; color: var(--text-muted);
  border: 1px solid var(--border); font-weight: 500;
}
.portal-feat-icon { font-size: 1.1rem; }

/* ── Testimonials ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow);
}
.testimonial-stars { color: var(--amber); font-size: 1.1rem; margin-bottom: 0.85rem; letter-spacing: 2px; }
.testimonial-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
}
.testimonial-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.testimonial-role { color: var(--text-dim); font-size: 0.85rem; font-weight: 500; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(6, 182, 212, 0.05));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-inner h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; margin-bottom: 1rem;
}
.cta-inner p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.contact-info-stack { display: grid; gap: 1rem; align-content: start; }
.contact-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; display: flex;
  align-items: center; gap: 1rem; transition: 0.25s; box-shadow: var(--shadow);
}
.contact-card:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
  background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.15);
}
.contact-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.contact-card p { color: var(--text-muted); font-size: 0.95rem; }

.contact-form-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-lg);
}
.contact-form-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem; }
.form-grid { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: grid; gap: 0.4rem; }
.form-label { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.form-input, .form-textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover); background: var(--bg);
  color: var(--text); font-size: 0.95rem; transition: 0.2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg-2);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-input:not(:placeholder-shown):invalid {
  border-color: var(--rose);
}
.form-input:not(:placeholder-shown):valid {
  border-color: var(--green);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-feedback { margin-top: 0.5rem; font-weight: 700; color: var(--green); font-size: 0.95rem; min-height: 1.3rem; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.site-footer p, .site-footer a { color: var(--text-muted); font-size: 0.95rem; }
.site-footer a:hover { color: var(--accent); font-weight: 500; }
.site-footer h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; color: var(--text); }
.site-footer ul { display: grid; gap: 0.6rem; }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 3rem;
  padding-top: 1.5rem; text-align: center;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.9rem; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid, .features-grid, .portals-grid, .contact-grid,
  .footer-grid, .steps-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .float-badge { display: none; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: absolute; top: calc(100% + 0.5rem); left: 1rem; right: 1rem;
    display: none; flex-direction: column; background: var(--bg-2);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .hero-grid, .features-grid, .portals-grid, .contact-grid,
  .footer-grid, .steps-grid, .testimonial-grid, .hero-stats,
  .form-row, .dash-preview { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0; }
  .section { padding: 4rem 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 1rem; }
  .hero h1 { font-size: 2.2rem; }
}
