/* =============================================
   VYALA.TECH — MAIN CSS DESIGN SYSTEM
   ============================================= */

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

/* ─── DESIGN TOKENS ─── */
:root {
  --bg-primary: #09090f;
  --bg-secondary: #111118;
  --bg-tertiary: #18181f;
  --bg-card: #141420;
  --bg-hover: rgba(99, 102, 241, 0.06);
  --text-primary: #eeeef8;
  --text-secondary: #8888aa;
  --text-muted: #55556a;
  --accent: #2656b0;
  --accent-light: #3b6fd4;
  --accent-dark: #1b3d7a;
  --accent-glow: rgba(54, 107, 212, 0.18);
  --accent-glow-sm: rgba(54, 107, 212, 0.10);
  --success: #22d3a4;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(54, 107, 212, 0.30);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 40px rgba(54,107,212,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: 0.25s ease;
  --transition-slow: 0.45s ease;
  --container-max: 1200px;
  --section-py: 112px;
  --nav-height: 68px;
}

[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f2f2f8;
  --bg-card: #ffffff;
  --bg-hover: rgba(79,70,229,0.05);
  --text-primary: #0e0e1a;
  --text-secondary: #5a5a7a;
  --text-muted: #9999b8;
  --accent: #2656b0;
  --accent-light: #3b6fd4;
  --accent-dark: #1b3d7a;
  --accent-glow: rgba(54,107,212,0.10);
  --accent-glow-sm: rgba(54,107,212,0.06);
  --border: rgba(0,0,0,0.07);
  --border-accent: rgba(54,107,212,0.25);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
  --shadow-accent: 0 0 40px rgba(54,107,212,0.09);
}

/* ─── RESET ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4,h5,h6 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: var(--text-primary); }
h1 { font-size: clamp(2.4rem,5.5vw,4rem); }
h2 { font-size: clamp(1.8rem,4vw,2.75rem); }
h3 { font-size: clamp(1.2rem,2.5vw,1.55rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-secondary); line-height: 1.75; }

.text-gradient {
  color: var(--accent-light);
}
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* ─── LAYOUT ─── */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-py) 0; }
.section-sm { padding: 72px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--accent);
}

.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-header p { margin-top: 16px; font-size: 1.1rem; }

/* ─── GRIDS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); box-shadow: 0 0 24px var(--accent-glow); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-accent); transform: translateY(-1px); }
.btn-ghost { color: var(--text-secondary); padding: 10px 18px; }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.84rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── CARDS ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-accent); transform: translateY(-3px); }

/* Subtle gradient border on hover — more premium feel */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--border-accent), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.card { position: relative; }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; line-height: 1.7; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
}
.badge-accent { background: var(--accent-glow); color: var(--accent-light); border-color: var(--border-accent); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.8); } }

/* ─── FEATURE LIST ─── */
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--text-secondary); }
.feature-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ─── STATS ─── */
.stat-item { text-align: center; padding: 32px 24px; }
.stat-number { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 8px; }

/* ─── TESTIMONIALS ─── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.testimonial-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-accent); transform: translateY(-2px); }
.testimonial-quote { font-size: 1rem; line-height: 1.75; color: var(--text-primary); margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: var(--accent-light); flex-shrink: 0;
}
.author-info strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.author-info span { font-size: 0.82rem; color: var(--text-muted); }

/* ─── LOGO STRIP ─── */
.logo-strip { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.logo-strip-label { text-align: center; font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 28px; }
.logo-strip-items { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.logo-strip-item { font-size: 1rem; font-weight: 700; color: var(--text-muted); opacity: 0.45; transition: opacity var(--transition); }
.logo-strip-item:hover { opacity: 0.85; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-sm);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-select { appearance: none; cursor: pointer; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ─── CTA SECTION ─── */
.cta-section { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p { margin-bottom: 40px; font-size: 1.1rem; }
.cta-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; }
.cta-form .form-input { flex: 1; border-radius: var(--radius-full); padding: 14px 20px; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Subtle dot grid texture on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { margin-bottom: 24px; }
.hero p.hero-sub { font-size: clamp(1rem,1.8vw,1.2rem); max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.75; margin-top: 16px; max-width: 280px; }
.footer-col h5 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.92rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--text-secondary); }

/* Active nav link — add class via JS on each page */
.nav-links a.nav-active {
  color: var(--text-primary);
  position: relative;
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
}

/* ─── DIVIDER ─── */
.divider { width: 100%; height: 1px; background: var(--border); }

/* ─── ALERT BOX ─── */
.form-success {
  display: none;
  background: rgba(34,211,164,0.1);
  border: 1px solid rgba(34,211,164,0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--success);
  font-size: 0.95rem;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  :root { --section-py: 88px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .logo-strip-items { gap: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 24px; }
}
