/* =============================================
   iConTel 2027 — Design System
   Dark Mode (default) + Light Mode
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #5a00d1;
  --primary-light: #7c3aed;
  --secondary: #00b3c2;
  --accent: #00e5ff;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-glow: linear-gradient(135deg, rgba(90,0,209,0.4), rgba(0,179,194,0.4));

  /* Dark Mode (default) */
  --bg: #080c14;
  --bg-surface: #0d1421;
  --bg-card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(0,179,194,0.4);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(90,0,209,0.2);
  --nav-bg: rgba(8,12,20,0.85);
  --footer-bg: #050810;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(0,0,0,0.02);
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(90,0,209,0.4);
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(90,0,209,0.08);
  --nav-bg: rgba(248,250,252,0.9);
  --footer-bg: #0f172a;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); font-size: 1rem; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--secondary);
  display: block; margin-bottom: 1rem;
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.section-header p { margin-top: 1rem; font-size: 1.1rem; }

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Glass Card ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem; font-family: 'Inter', sans-serif;
  cursor: pointer; border: none; transition: all 0.3s;
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(90,0,209,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(90,0,209,0.5); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.5rem 0.875rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.5rem; min-width: 260px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all 0.2s; box-shadow: var(--shadow); z-index: 10;
}
.nav-links .dropdown-menu::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; background: transparent;
}
.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem; border-radius: 8px;
  font-size: 0.875rem; width: 100%;
}
.dropdown-menu a:hover { background: var(--bg-card); color: var(--text); }
.nav-controls { display: flex; align-items: center; gap: 0.75rem; }
.lang-toggle, .theme-toggle {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.4rem 0.75rem;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.lang-toggle:hover, .theme-toggle:hover { border-color: var(--secondary); color: var(--text); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 68px;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(90,0,209,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,0,209,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; z-index: 0;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,0,209,0.18) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.hero-glow-2 {
  position: absolute; z-index: 0;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,179,194,0.12) 0%, transparent 70%);
  bottom: 0; left: 20%; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; padding: 4rem 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(90,0,209,0.12); border: 1px solid rgba(90,0,209,0.3);
  border-radius: 50px; padding: 0.4rem 1rem;
  font-size: 0.8rem; font-weight: 600; color: var(--secondary);
  margin-bottom: 1.5rem; position: relative; z-index: 1;
  align-self: flex-start;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--secondary); border-radius: 50%; flex-shrink: 0; animation: pulse-dot 2s infinite; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero-text h1 { margin-bottom: 1.5rem; position: relative; z-index: 1; }
.hero p { font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1rem; margin-top: 3rem;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat-label { font-size: 0.78rem; color: var(--text-subtle); font-weight: 600; }

/* Hero Right: Client Login Card */
.hero-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.login-header { margin-bottom: 2rem; }
.login-header h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.login-header p { font-size: 0.85rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-group input {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--secondary); }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.btn-login {
  background: var(--gradient); color: #fff;
  border: none; border-radius: 10px;
  padding: 0.8rem 1.75rem; font-weight: 700;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-login:hover { opacity: 0.9; transform: translateY(-1px); }
.forgot-link { font-size: 0.82rem; color: var(--secondary); }
.login-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.new-client-cta { text-align: center; }
.new-client-cta p { font-size: 0.82rem; margin-bottom: 0.75rem; }
.new-client-cta a { color: var(--secondary); font-weight: 600; font-size: 0.9rem; }

/* ---- TNA Banner ---- */
.tna-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.tna-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.tna-inner p { font-size: 0.85rem; color: var(--text-subtle); white-space: nowrap; }
.tna-brands { display: flex; gap: 1rem; flex-wrap: wrap; }
.tna-brands a {
  font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
  padding: 0.3rem 0.75rem; border: 1px solid var(--border);
  border-radius: 6px; transition: all 0.2s;
}
.tna-brands a:hover { border-color: var(--secondary); color: var(--secondary); }

/* ---- Pillars ---- */
.pillar-icon {
  width: 52px; height: 52px;
  background: var(--gradient); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(90,0,209,0.3);
}
.pillar-card h3 { margin-bottom: 0.5rem; }
.pillar-card p { font-size: 0.9rem; margin-bottom: 1.25rem; }
.pillar-link { font-size: 0.85rem; font-weight: 600; color: var(--secondary); display: inline-flex; align-items: center; gap: 0.3rem; }
.pillar-link:hover { gap: 0.6rem; }

/* ---- Metrics ---- */
.metrics-section { background: var(--bg-surface); }
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.metric-num { font-family: 'Outfit',sans-serif; font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 0.5rem; }
.metric-label { font-size: 0.85rem; color: var(--text-subtle); font-weight: 600; }
@media (max-width: 768px) { .metrics-grid { grid-template-columns: repeat(2,1fr); } }

/* ---- Partners Strip ---- */
.partners-strip { overflow: hidden; padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.partners-label { text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 1.5rem; }
.partners-track-wrapper { overflow: hidden; }
.partners-track {
  display: flex; gap: 3rem; align-items: center;
  animation: scroll-partners 30s linear infinite; width: max-content;
}
.partners-track:hover { animation-play-state: paused; }
.partner-item { font-weight: 700; font-size: 0.95rem; color: var(--text-subtle); white-space: nowrap; transition: color 0.2s; }
.partner-item:hover { color: var(--text); }

/* ---- Clients ---- */
.clients-track-wrapper { overflow: hidden; }
.clients-track {
  display: flex; gap: 1.5rem; align-items: center;
  animation: scroll-partners 25s linear infinite reverse; width: max-content;
}
.client-chip {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50px; padding: 0.5rem 1.25rem;
  font-size: 0.9rem; font-weight: 700; color: var(--text-muted);
  white-space: nowrap; transition: all 0.2s;
}
.client-chip:hover { border-color: var(--secondary); color: var(--text); }

/* ---- Contact Section ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-item-icon { width: 42px; height: 42px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-item-text strong { display: block; font-size: 0.8rem; color: var(--text-subtle); }
.contact-item-text a { font-weight: 600; color: var(--text); transition: color 0.2s; }
.contact-item-text a:hover { color: var(--secondary); }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 2.5rem; }
.contact-form .form-group { margin-bottom: 1rem; }
.form-group textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 0.95rem;
  font-family: 'Inter', sans-serif; resize: vertical; min-height: 110px;
}
.form-group textarea:focus { outline: none; border-color: var(--secondary); }
.form-group select {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}
.form-group select:focus { outline: none; border-color: var(--secondary); }
.form-status { font-size: 0.85rem; margin-top: 0.75rem; text-align: center; min-height: 1.2em; }

/* ---- Footer ---- */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.9rem; color: var(--text-subtle); margin-top: 1rem; max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0; }
.footer-logo img { height: 30px; }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.9rem; color: var(--text-subtle); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-subtle); }
.social-links { display: flex; gap: 0.75rem; }
.social-link { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-subtle); transition: all 0.2s; font-size: 0.85rem; }
.social-link:hover { border-color: var(--secondary); color: var(--secondary); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- WhatsApp Float ---- */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ---- Animations ---- */
@keyframes scroll-partners {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; }
.fade-up.visible { animation: fade-up 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ---- Mobile Nav ---- */
@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; inset: 68px 0 0 0; background: var(--bg-surface); flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; gap: 0.25rem; border-top: 1px solid var(--border); z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; width: 100%; font-size: 1rem; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dropdown-menu { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; background: transparent; border: none; padding-left: 1rem; }
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}

/* ---- Contact Circles ---- */
.contact-circles { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.circle-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.15rem; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-decoration: none; }
.circle-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); color: #fff; }
.circle-wa { background: #25D366; }
.circle-li { background: #0077B5; }
.circle-em { background: #EA4335; }
.circle-ph { background: #6c757d; }
.circle-map { background: #fff; color: #EA4335; }
.circle-map:hover { color: #EA4335; }
