/* ================================================================
   AHDIANTECH v2 — DESIGN SYSTEM
   Inspired by: ECAM, Pro-Vigil, Sirix top competitors analysis
   Palette: Deep Navy + Electric Blue + Steel White
   ================================================================ */

/* ── Google Fonts imported in HTML ── */

:root {
  /* ── Core Palette ── */
  --navy:      #020b14;
  --navy2:     #041020;
  --navy3:     #071a30;
  --steel:     #0d2540;
  --steel2:    #112d4a;
  --blue:      #0ea5e9;
  --blue2:     #38bdf8;
  --blue3:     #7dd3fc;
  --cyan:      #00ffe0;
  --red:       #ef4444;
  --amber:     #f59e0b;
  --green:     #22c55e;
  --white:     #f0f6ff;
  --text:      #c8ddf0;
  --muted:     #4a6a88;
  --muted2:    #7a9ab8;

  /* ── Gradients ── */
  --grad-hero: linear-gradient(135deg, #020b14 0%, #041828 50%, #020d1e 100%);
  --grad-blue: linear-gradient(135deg, #0ea5e9, #00ffe0);
  --grad-card: linear-gradient(135deg, #071a30 0%, #0d2540 100%);

  /* ── Borders ── */
  --border:    rgba(14,165,233,0.12);
  --border2:   rgba(14,165,233,0.28);
  --border3:   rgba(14,165,233,0.5);

  /* ── Shadows / Glows ── */
  --glow-xs:   0 0 12px rgba(14,165,233,0.2);
  --glow-sm:   0 0 24px rgba(14,165,233,0.25);
  --glow-md:   0 0 40px rgba(14,165,233,0.35);
  --glow-lg:   0 0 70px rgba(14,165,233,0.45);
  --glow-cyan: 0 0 30px rgba(0,255,224,0.3);
  --shadow:    0 20px 60px rgba(0,0,0,0.5);

  /* ── Layout ── */
  --max:       1280px;
  --pad:       clamp(18px, 5vw, 72px);
  --hh:        72px;
  --radius:    10px;
  --radius-lg: 16px;

  /* ── Fonts ── */
  --ff-head:   'Rajdhani', sans-serif;
  --ff-body:   'Nunito', sans-serif;
  --ff-mono:   'Share Tech Mono', monospace;
  --ff-accent: 'Barlow Condensed', sans-serif;
}

/* ================================================================
   RESET + BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: none; font-family: var(--ff-body); }
input, select, textarea { font-family: var(--ff-body); }

/* ── Custom Cursor ── */
.cursor {
  width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue);
  position: fixed; pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border-radius: 50%; border: 1.5px solid rgba(14,165,233,0.6);
  position: fixed; pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear, width 0.3s, height 0.3s;
}
body:hover .cursor { opacity: 1; }
a:hover ~ .cursor, button:hover ~ .cursor { width: 20px; height: 20px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── Skip Link ── */
.skip-link {
  position: absolute; left: -9999px; top: 12px;
  background: var(--blue); color: var(--navy);
  padding: 10px 18px; border-radius: 6px; z-index: 99999;
  font-weight: 700; font-size: 0.85rem;
}
.skip-link:focus { left: 12px; }
.no-scroll { overflow: hidden; }

/* ── Selection ── */
::selection { background: rgba(14,165,233,0.3); color: var(--white); }

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.container  { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section    { padding: 110px var(--pad); max-width: var(--max); margin: 0 auto; }
.section-full { padding: 110px var(--pad); }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--ff-head); letter-spacing: 0.5px; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 600; margin-bottom: 16px; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 0.72rem;
  letter-spacing: 3px; text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}
.section-tag::before { content: '//'; opacity: 0.5; }

.section-sub {
  color: var(--muted2); font-size: 1.05rem;
  max-width: 580px; font-weight: 300; line-height: 1.8;
}
.section-header { text-align: center; margin-bottom: 72px; }
.section-header .section-sub { margin: 0 auto; }
.accent { color: var(--blue); }
.accent-cyan { color: var(--cyan); }
.mono { font-family: var(--ff-mono); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 4px;
  font-family: var(--ff-accent); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 1.5px; text-transform: uppercase;
  border: none; transition: all 0.25s ease;
  position: relative; overflow: hidden; white-space: nowrap;
  cursor: none;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-100%); transition: transform 0.4s;
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
  background: var(--blue); color: var(--navy);
  box-shadow: var(--glow-sm);
}
.btn-primary:hover { background: var(--blue2); transform: translateY(-2px); box-shadow: var(--glow-md); }

.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-cyan {
  background: var(--cyan); color: var(--navy);
  box-shadow: var(--glow-cyan);
}
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,255,224,0.45); }

.btn-ghost {
  background: rgba(14,165,233,0.1); color: var(--blue);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: rgba(14,165,233,0.18); }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(0); transition: transform 0.4s; transform-origin: left;
}
.card:hover { border-color: var(--border2); box-shadow: var(--glow-sm); transform: translateY(-5px); }
.card:hover::before { transform: scaleX(1); }

.card--featured { border-color: var(--blue); box-shadow: var(--glow-md); }
.card--featured::before { transform: scaleX(1); }

/* ================================================================
   REVEAL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.from-left  { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.scale-up   { transform: scale(0.92); }
.reveal.visible    { opacity: 1 !important; transform: none !important; }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ================================================================
   BACKGROUND EFFECTS
   ================================================================ */
.grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.radar-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(14,165,233,0.15);
  animation: radar-expand 3s ease-out infinite;
}
@keyframes radar-expand {
  0%   { transform: scale(0); opacity: 0.8; }
  100% { transform: scale(4); opacity: 0; }
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 50%, transparent 100%);
  opacity: 0.3; animation: scan-move 6s linear infinite;
}
@keyframes scan-move { 0% { top: -1px; } 100% { top: 100%; } }

.noise-overlay {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ================================================================
   TRUST BAR
   ================================================================ */
.trust-bar {
  background: rgba(7,26,48,0.9);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--pad);
  backdrop-filter: blur(8px);
}
.trust-bar-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 3vw, 48px); flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-mono); font-size: 0.72rem;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted2);
  white-space: nowrap;
}
.trust-item .ti-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.6)} 50%{box-shadow:0 0 0 6px rgba(34,197,94,0)} }

/* ================================================================
   STAT COUNTERS
   ================================================================ */
.stat-row { display: flex; gap: 48px; flex-wrap: wrap; }
.stat-item { border-left: 2px solid var(--blue); padding-left: 20px; }
.stat-num { font-family: var(--ff-head); font-size: 2.8rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat-label { font-family: var(--ff-mono); font-size: 0.68rem; color: var(--muted2); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }

/* ================================================================
   LIVE BADGE
   ================================================================ */
.live-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(14,165,233,0.08); border: 1px solid var(--border2);
  border-radius: 24px; padding: 7px 18px;
  font-family: var(--ff-mono); font-size: 0.7rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--blue);
  margin-bottom: 28px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-dot 1.8s infinite; flex-shrink: 0; }

/* ================================================================
   FORM STYLES
   ================================================================ */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted2); }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(14,165,233,0.04); border: 1px solid var(--border);
  border-radius: 6px; padding: 13px 16px;
  color: var(--white); font-family: var(--ff-body); font-size: 0.92rem;
  outline: none; transition: border-color 0.2s, background 0.2s; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); background: rgba(14,165,233,0.07);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group select option { background: #071a30; color: var(--white); }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit {
  background: var(--blue); color: var(--navy); border: none;
  padding: 16px 32px; border-radius: 6px;
  font-family: var(--ff-accent); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 2px; text-transform: uppercase; cursor: none;
  box-shadow: var(--glow-sm); transition: all 0.25s; width: 100%;
}
.form-submit:hover { background: var(--blue2); transform: translateY(-2px); box-shadow: var(--glow-md); }
.form-submit:disabled { opacity: 0.6; transform: none; }

.form-msg { padding: 13px 18px; border-radius: 6px; font-size: 0.88rem; font-weight: 600; text-align: center; margin-top: 6px; }
.form-msg.ok  { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.3);  color: var(--green); }
.form-msg.err { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: var(--red); }

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  background: linear-gradient(135deg, #041020 0%, #071a30 50%, #041020 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 90px var(--pad); text-align: center; position: relative; overflow: hidden;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  padding: calc(var(--hh) + 90px) var(--pad) 90px;
  text-align: center; position: relative; overflow: hidden; background: var(--navy2);
}
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(14,165,233,0.10) 0%, transparent 70%); pointer-events: none; }
.page-hero h1 { position: relative; z-index: 1; margin-bottom: 18px; }
.page-hero p { color: var(--muted2); font-size: 1.1rem; max-width: 620px; margin: 0 auto; position: relative; z-index: 1; line-height: 1.8; }
.breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; font-family: var(--ff-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; position: relative; z-index: 1; }
.breadcrumb a { color: var(--blue); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: #020810; border-top: 1px solid var(--border); padding: 80px var(--pad) 36px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 60px; }
.footer-logo { font-family: var(--ff-head); font-size: 1.9rem; font-weight: 700; letter-spacing: 2px; color: var(--white); display: inline-block; margin-bottom: 14px; }
.footer-logo span { color: var(--blue); }
.footer-logo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-left: 3px; vertical-align: middle; animation: pulse-dot 1.8s infinite; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; line-height: 1.8; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.social-link { width: 40px; height: 40px; border-radius: 8px; background: var(--steel); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--muted2); transition: all 0.2s; }
.social-link:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--glow-xs); }
.footer-col h4 { font-family: var(--ff-accent); font-size: 0.82rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 22px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--muted); font-size: 0.86rem; transition: color 0.2s, padding-left 0.2s; display: inline-block; }
.footer-col ul li a:hover { color: var(--blue); padding-left: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom span { font-size: 0.8rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--blue); }
.cert-badges { display: flex; gap: 14px; align-items: center; }
.cert-badge { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 1px; color: var(--muted2); padding: 5px 12px; border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; gap: 5px; }
.cert-badge em { color: var(--green); font-style: normal; }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-top { position: fixed; bottom: 30px; right: 30px; z-index: 9000; width: 50px; height: 50px; border-radius: 50%; background: var(--blue); color: var(--navy); border: none; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-sm); opacity: 0; transform: translateY(20px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: var(--blue2); box-shadow: var(--glow-md); }

/* ================================================================
   RESPONSIVE HELPERS
   ================================================================ */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } .cert-badges { justify-content: center; } }
