﻿/* ==========================================================================
   MI TECHNOLOGIES â€” Main Stylesheet
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-soft: #0b1120;
  --card: #0f172a;
  --card-border: rgba(148, 163, 184, 0.12);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --nav-active: #fff;
  --primary: #004AAD;
  --primary-2: #2A68BB;
  --accent: #4D96FF;
  --grad: linear-gradient(135deg, #004AAD, #2A68BB 45%, #4D96FF);
  --grad-text: linear-gradient(135deg, #7DA3D5, #4D96FF 55%, #2A68BB);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--primary); color: #fff; }

/* ---------- Light theme ---------- */
html[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-soft: #e9edf5;
  --card: #ffffff;
  --card-border: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --text-muted: #475569;
  --nav-active: #0f172a;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .header.scrolled { background: rgba(244, 246, 251, 0.88); }
html[data-theme="light"] .footer { background: #e8ecf4; }
html[data-theme="light"] .code-card { background: rgba(255, 255, 255, 0.92); }
html[data-theme="light"] .code-card-header { background: rgba(15, 23, 42, 0.03); }
html[data-theme="light"] .float-chip { background: rgba(255, 255, 255, 0.95); }
html[data-theme="light"] .map-overlay { background: rgba(255, 255, 255, 0.94); }
html[data-theme="light"] .form-group select option { background: #fff; }
html[data-theme="light"] .tech-track span { color: var(--text); }
html[data-theme="light"] .nav { background: transparent; }
html[data-theme="light"] .code-body { color: #334155; }

body,
.header,
.footer,
.service-card,
.why-card,
.info-card,
.contact-form,
.code-card,
.code-card-header,
.float-chip,
.map-overlay,
.tech-track span,
.about-card-mini,
.form-group input,
.form-group select,
.form-group textarea,
.theme-toggle,
.stat,
.software-card,
.software-features li {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--card-border);
  font-size: 1.1rem; cursor: pointer; display: grid; place-items: center;
  color: var(--text);
}
.theme-toggle:hover { transform: rotate(15deg) scale(1.08); border-color: var(--primary); }

@media (max-width: 768px) {
  .theme-toggle { width: 38px; height: 38px; font-size: 1rem; }
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section { padding: 100px 0; position: relative; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader { text-align: center; }
.loader-icon { font-size: 3rem; display: block; animation: pulse 1s infinite alternate; }
.loader-text { font-family: var(--font-head); font-weight: 800; letter-spacing: 0.3em; font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.2); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  font-family: var(--font-body); cursor: pointer; border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(0, 74, 173, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 74, 173, 0.55); }
.btn-outline {
  background: transparent; color: var(--text); border: 2px solid rgba(148, 163, 184, 0.4);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--bg); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(255, 255, 255, 0.25); }
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0; transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 42px; width: auto; display: block; }
.loader-logo { height: 70px; width: auto; margin: 0 auto; display: block; animation: pulse 1s infinite alternate; }

@media (max-width: 768px) {
  .brand-logo { height: 36px; }
}
.brand-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; font-size: 1.2rem; color: #fff;
  box-shadow: 0 6px 18px rgba(0, 74, 173, 0.45);
}
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.04em; }
.brand-accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-list { display: flex; gap: 26px; }
.nav-link {
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  position: relative; transition: color 0.25s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--nav-active); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 26px; height: 2.5px; background: #fff; margin: 5px 0;
  border-radius: 3px; transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; padding: 140px 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 74, 173, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 74, 173, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; animation: float 12s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; background: #004AAD; top: -120px; left: -100px; }
.orb-2 { width: 380px; height: 380px; background: #4D96FF; bottom: -100px; right: -80px; animation-delay: -4s; }
.orb-3 { width: 260px; height: 260px; background: #2A68BB; top: 40%; right: 30%; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-40px) translateX(20px); }
}

.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}

.badge {
  display: inline-block; padding: 8px 18px; border-radius: 50px;
  background: rgba(0, 74, 173, 0.12); border: 1px solid rgba(0, 74, 173, 0.35);
  color: #9EC0EC; font-size: 0.85rem; font-weight: 600; margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; margin-bottom: 20px;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.9rem;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-plus { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--accent); }
.stat-label { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }

/* Hero code card */
.hero-visual { position: relative; }
.code-card {
  background: rgba(15, 23, 42, 0.85); border: 1px solid var(--card-border);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  backdrop-filter: blur(10px);
  transform: rotate(2deg); transition: transform 0.4s ease;
}
.code-card:hover { transform: rotate(0deg) scale(1.02); }
.code-card-header {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  border-bottom: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.03);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }
.code-title { margin-left: 8px; font-size: 0.8rem; color: var(--text-muted); font-family: 'Consolas', monospace; }
.code-body {
  padding: 22px; font-family: 'Consolas', monospace; font-size: 0.86rem; line-height: 1.9;
  color: var(--text-muted); overflow-x: auto; white-space: pre;
}
.c-key { color: #c792ea; }
.c-fn { color: #82aaff; }
.c-str { color: #c3e88d; }
.code-footer {
  padding: 12px 18px; border-top: 1px solid var(--card-border);
  font-size: 0.78rem; color: var(--accent); display: flex; align-items: center; gap: 8px;
}
.blink-cursor {
  width: 8px; height: 14px; background: var(--accent); display: inline-block;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.float-chip {
  position: absolute; padding: 10px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  background: rgba(15, 23, 42, 0.9); border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: float 6s ease-in-out infinite;
}
.chip-1 { top: -18px; left: -30px; }
.chip-2 { bottom: 20%; right: -26px; animation-delay: -2s; }
.chip-3 { bottom: -16px; left: 16%; animation-delay: -4s; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: block;
}
.mouse {
  width: 26px; height: 42px; border: 2px solid var(--text-muted); border-radius: 14px;
  display: block; position: relative;
}
.wheel {
  width: 4px; height: 8px; background: var(--accent); border-radius: 4px;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 24px; } }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: rgba(77, 150, 255, 0.1); border: 1px solid rgba(77, 150, 255, 0.3);
  color: #4D96FF; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-sub { color: var(--text-muted); }

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; }
.about-card-main {
  background: var(--grad); border-radius: var(--radius); padding: 40px;
  color: #fff; box-shadow: 0 20px 50px rgba(0, 74, 173, 0.35);
  transform: rotate(-2deg);
}
.about-card-main .about-emoji { font-size: 3rem; display: block; margin-bottom: 14px; }
.about-card-main h3 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 4px; }
.about-card-main p { opacity: 0.9; font-size: 0.9rem; }
.about-ceo {
  display: flex; align-items: center; gap: 12px; margin-top: 22px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px; padding: 12px 16px; backdrop-filter: blur(4px);
}
.about-ceo-emoji { font-size: 1.5rem; }
.about-ceo strong { display: block; font-size: 0.95rem; }
.about-ceo small { opacity: 0.85; font-size: 0.78rem; }
.about-card-mini {
  position: absolute; bottom: -34px; right: -20px; max-width: 300px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.about-card-mini .about-emoji { font-size: 1.6rem; }
.about-card-mini p { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
.about-card-mini strong { color: var(--text); }

.about-text h3 { font-family: var(--font-head); font-size: 1.7rem; margin-bottom: 18px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-text strong { color: var(--text); }
.about-list { margin: 22px 0 30px; display: grid; gap: 10px; }
.about-list li { color: var(--text); font-size: 0.95rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(0, 74, 173, 0.5); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; border-radius: 14px; background: rgba(0, 74, 173, 0.12);
  display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 20px;
  border: 1px solid rgba(0, 74, 173, 0.25); transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-6deg); }
.service-card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 16px; }
.service-link { color: var(--accent); font-size: 0.9rem; font-weight: 600; transition: letter-spacing 0.25s ease; }
.service-link:hover { letter-spacing: 0.5px; }

/* ---------- Software showcase ---------- */
.software-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.software-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.software-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.software-card:hover::before { transform: scaleX(1); }
.software-card:hover { box-shadow: var(--shadow); }
.software-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.software-icon {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 14px; font-size: 1.6rem;
  background: rgba(0, 74, 173, 0.12); border: 1px solid rgba(0, 74, 173, 0.25);
  display: grid; place-items: center;
}
.software-head h3 { font-family: var(--font-head); font-size: 1.25rem; }
.software-card > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.software-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px;
  margin-bottom: 24px; flex-grow: 1;
}
.software-features li {
  color: var(--text-muted); font-size: 0.88rem; display: flex; align-items: flex-start; gap: 8px;
}
.software-features li::before { content: 'âœ“'; color: #34d399; font-weight: 700; flex-shrink: 0; }
.software-card .btn { align-self: flex-start; }
.software-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.software-cta {
  margin-top: 46px; text-align: center; padding: 34px 26px;
  background: var(--card); border: 1px dashed rgba(0, 74, 173, 0.4);
  border-radius: var(--radius);
}
.software-cta p { color: var(--text-muted); margin-bottom: 18px; font-size: 0.98rem; }
.software-cta p::before { content: 'ðŸ’¡ '; }

@media (max-width: 768px) {
  .software-grid { grid-template-columns: 1fr; }
  .software-features { grid-template-columns: 1fr; }
}

/* ---------- Tech marquee ---------- */
.tech { padding-bottom: 60px; }
.tech-marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  padding: 20px 0;
}
.tech-track {
  display: flex; gap: 18px; width: max-content; animation: marquee 28s linear infinite;
}
.tech-track span {
  padding: 14px 30px; background: var(--card); border: 1px solid var(--card-border);
  border-radius: 50px; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  color: var(--text-muted); white-space: nowrap; transition: color 0.3s ease, border-color 0.3s ease;
}
.tech-track span:hover { color: var(--accent); border-color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Why us ---------- */
.why { background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 32px 28px; position: relative; transition: transform 0.3s ease, border-color 0.3s ease;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(77, 150, 255, 0.4); }
.why-num {
  font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; opacity: 0.15;
  position: absolute; top: 16px; right: 22px;
}
.why-card h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 10px; color: var(--accent); }
.why-card p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; padding: 90px 0; overflow: hidden;
  background: var(--grad);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1), transparent 40%);
}
.cta-inner { position: relative; text-align: center; color: #fff; }
.cta-inner h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 12px; }
.cta-inner .grad-text {
  background: linear-gradient(135deg, #fff, #9EC0EC);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cta-inner p { opacity: 0.9; margin-bottom: 28px; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 16px; transition: border-color 0.3s ease, transform 0.3s ease;
}
.info-card:hover { border-color: rgba(0, 74, 173, 0.5); transform: translateX(6px); }
.info-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  background: rgba(0, 74, 173, 0.12); border: 1px solid rgba(0, 74, 173, 0.25);
  display: grid; place-items: center; font-size: 1.2rem;
}
.info-card h4 { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 3px; }
.info-card a { color: var(--accent); font-weight: 500; transition: opacity 0.25s ease; }
.info-card a:hover { opacity: 0.8; }
.info-card p { color: var(--text-muted); font-size: 0.9rem; }
.info-note {
  background: rgba(77, 150, 255, 0.08); border: 1px solid rgba(77, 150, 255, 0.25);
  border-radius: var(--radius); padding: 16px 20px; font-size: 0.88rem; color: var(--text-muted);
}

.contact-form {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--card-border); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.2);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #64748b; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-group select option { background: var(--bg); color: var(--text); }

.form-status { display: none; margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; font-size: 0.92rem; font-weight: 500; }
.form-status.show { display: block; }
.form-status.success { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.form-status.error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); color: #fca5a5; }
.form-status.loading { background: rgba(0, 74, 173, 0.12); border: 1px solid rgba(0, 74, 173, 0.4); color: #9EC0EC; }
.form-footnote { text-align: center; color: var(--text-muted); font-size: 0.82rem; margin-top: 14px; }

/* ---------- Map ---------- */
.map-wrapper {
  position: relative; margin-top: 50px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow);
}
.map-wrapper iframe {
  width: 100%; height: 420px; border: 0; display: block; filter: saturate(0.9);
}
.map-overlay {
  position: absolute; left: 24px; top: 24px; display: flex; gap: 12px; align-items: center;
  background: rgba(7, 11, 20, 0.88); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 14px 20px; backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); max-width: 320px;
}
.map-pin { font-size: 1.6rem; animation: pulse 1.6s infinite alternate; }
.map-overlay p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.map-overlay strong { color: var(--text); }
.map-link { display: inline-block; margin-top: 4px; font-size: 0.82rem; font-weight: 600; color: var(--accent); transition: opacity 0.25s ease; }
.map-link:hover { opacity: 0.8; }

@media (max-width: 768px) {
  .map-wrapper iframe { height: 300px; }
  .map-overlay { left: 12px; right: 12px; top: 12px; max-width: none; }
}

/* ---------- Footer ---------- */
.footer { background: #05080f; border-top: 1px solid var(--card-border); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin: 18px 0 20px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--card-border); display: grid; place-items: center;
  font-size: 1.1rem; transition: transform 0.3s ease, border-color 0.3s ease;
}
.footer-social a:hover { transform: translateY(-4px); border-color: var(--primary); }
.footer-col h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-col ul a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact li { color: var(--text-muted); font-size: 0.9rem; }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--accent); padding-left: 0; }
.footer-bottom { border-top: 1px solid var(--card-border); padding: 20px 0; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px;
  border-radius: 14px; background: var(--grad); color: #fff; border: none;
  font-size: 1.3rem; cursor: pointer; opacity: 0; visibility: hidden; z-index: 900;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 74, 173, 0.4);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   SCHOOL MANAGEMENT SYSTEM PAGE
   ========================================================================== */
.page-hero {
  position: relative; padding: 160px 0 80px; overflow: hidden; text-align: center;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-inner { position: relative; z-index: 1; max-width: 820px; margin-inline: auto; }
.page-hero .badge { margin-bottom: 18px; }
.page-hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto 30px; }
.breadcrumb { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.breadcrumb a { color: var(--accent); }
.hero-stats-inline { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats-inline .stat { min-width: 120px; }

/* Module quick-nav */
.module-nav {
  position: sticky; top: 64px; z-index: 500; background: var(--bg);
  border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
  padding: 12px 0; overflow-x: auto; scrollbar-width: none;
}
.module-nav::-webkit-scrollbar { display: none; }
.module-nav ul { display: flex; gap: 10px; white-space: nowrap; justify-content: center; }
.module-nav a {
  padding: 8px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); border: 1px solid var(--card-border); background: var(--card);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.module-nav a:hover { color: #fff; border-color: var(--primary); background: rgba(0, 74, 173, 0.15); }
html[data-theme="light"] .module-nav a:hover { color: var(--primary); }
.module-nav a.active { color: #fff; background: var(--grad); border-color: transparent; }

/* Module sections */
.sms-section { padding: 80px 0; }
.sms-section:nth-of-type(odd) { background: var(--bg-soft); }
.module-head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.module-num {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--grad);
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 74, 173, 0.35);
}
.module-head h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); }
.module-desc { color: var(--text-muted); margin-bottom: 34px; max-width: 760px; }
.sms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 14px;
  padding: 22px; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(0, 74, 173, 0.45); box-shadow: var(--shadow); }
.feature-card h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.feature-card h3 span { font-size: 1.05rem; }
.feature-card p { color: var(--text-muted); font-size: 0.87rem; }
.feature-list { margin: 8px 0 0; padding-left: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 12px; }
.feature-list li { color: var(--text-muted); font-size: 0.84rem; line-height: 1.5; }
.sms-note {
  margin-top: 34px; padding: 20px 26px; border-radius: 14px; font-size: 0.93rem; color: var(--text-muted);
  background: rgba(0, 74, 173, 0.08); border: 1px dashed rgba(0, 74, 173, 0.35);
}
.sms-note strong { color: var(--text); }

/* Pricing */
.pricing-section { background: var(--bg-soft); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 18px;
  padding: 32px 26px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover { transform: translateY(-6px); border-color: rgba(0, 74, 173, 0.45); box-shadow: var(--shadow); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 14px 44px rgba(0, 74, 173, 0.28);
  background: linear-gradient(180deg, rgba(0, 74, 173, 0.08), var(--card) 45%);
}
.plan-recommended {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; padding: 6px 16px; border-radius: 50px; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 74, 173, 0.4);
}
.plan-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.plan-price {
  font-family: var(--font-head); font-weight: 800; font-size: 2rem; margin: 12px 0 2px; line-height: 1.1;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px;
}
.plan-price .currency { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.plan-price .period { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }
.plan-tagline { color: var(--text-muted); font-size: 0.85rem; margin: 8px 0 20px; }
.plan-features { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-muted); font-size: 0.85rem; line-height: 1.45;
}
.plan-features li::before {
  content: "✓"; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(18, 183, 106, 0.14); color: #12b76a; font-size: 0.68rem; font-weight: 700;
}
.plan-features.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.pricing-card .btn { width: 100%; }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .plan-features.two-col { grid-template-columns: 1fr; }
  .plan-price { font-size: 1.55rem; }
  .pricing-card { padding: 28px 20px 22px; }
  .plan-recommended { font-size: 0.66rem; padding: 5px 12px; }
}

@media (max-width: 1024px) { .sms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .sms-grid { grid-template-columns: 1fr; }
  .module-nav ul { justify-content: flex-start; }
}

/* Phone refinements */
@media (max-width: 480px) {
  .sms-section { padding: 56px 0; }
  .page-hero { padding: 130px 0 60px; }
  .module-head { gap: 12px; }
  .module-num { width: 44px; height: 44px; font-size: 0.95rem; border-radius: 12px; }
  .module-head h2 { font-size: 1.3rem; }
  .module-desc { margin-bottom: 26px; }
  .feature-card { padding: 18px; }
  .feature-list { grid-template-columns: 1fr; }
  .sms-note { padding: 16px 18px; font-size: 0.87rem; }
  .hero-stats-inline { gap: 12px; }
  .hero-stats-inline .stat { min-width: 0; flex: 1 1 40%; }
  .stat-num { font-size: 1.5rem; }
  .breadcrumb { font-size: 0.78rem; }
}
@media (max-width: 360px) {
  .plan-price { font-size: 1.35rem; }
  .page-hero h1 { font-size: 1.9rem; }
}

/* ==========================================================================
   COPY / CLONE PROTECTION
   ========================================================================== */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img {
  -webkit-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 70px; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 70px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav {
    position: fixed; top: 0; right: -100%; width: min(320px, 80%);
    height: 100vh; background: var(--bg-soft); flex-direction: column;
    justify-content: center; gap: 34px; padding: 40px;
    transition: right 0.4s ease; box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
  }
  .nav.open { right: 0; }
  .nav-list { flex-direction: column; gap: 22px; text-align: center; }
  .nav-link { font-size: 1.1rem; }
  .nav-cta { width: 100%; }
  .nav-toggle { display: block; position: relative; z-index: 1100; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .hero-actions .btn { width: 100%; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-card-mini { position: static; margin-top: 20px; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .float-chip { display: none; }
}

@media (max-width: 420px) {
  .contact-form { padding: 26px 20px; }
}
