/* =========================================================
   DNCL TECHNOLOGIES — GLOBAL THEME (TVS-E inspired redesign)
   Clean white UI · bright blue → cyan · modern rounded cards
   ========================================================= */

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

/* ---------- DESIGN TOKENS ---------- */
:root {
  --brand:        #0072bc;   /* TVS-E primary blue   */
  --brand-dark:   #00407e;   /* deep navy blue       */
  --brand-darker: #002b5c;
  --brand-cyan:   #00aeef;   /* bright cyan accent   */
  --brand-grad:   linear-gradient(135deg, #0072bc 0%, #00aeef 100%);
  --brand-grad-dark: linear-gradient(135deg, #00407e 0%, #0072bc 100%);

  --ink:        #0b1b2b;     /* headings / strong text */
  --body:       #41515f;     /* body text             */
  --muted:      #6b7b8a;
  --line:       #e6edf4;     /* hairline borders      */

  --bg:         #ffffff;
  --bg-soft:    #f4f8fc;     /* light blue-tinted     */
  --bg-softer:  #eaf3fb;

  --radius:     16px;
  --radius-lg:  24px;
  --radius-sm:  10px;

  --shadow-sm:  0 4px 14px rgba(11, 27, 43, 0.06);
  --shadow-md:  0 14px 38px rgba(11, 27, 43, 0.10);
  --shadow-lg:  0 28px 70px rgba(0, 64, 126, 0.18);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Poppins', 'Inter', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-family: var(--font-body);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: var(--bg);
  color: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { width: 100%; min-height: 100vh; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0; }

.page-title { font-size: clamp(28px, 5vw, 52px); }

:where(h1) { font-size: clamp(30px, 5vw, 54px); line-height: 1.12; font-weight: 800; }
h2 { font-size: clamp(24px, 4vw, 38px); line-height: 1.18; }
h3 { font-size: 20px; }

p, li { font-size: 16px; line-height: 1.7; }
span  { font-size: inherit; line-height: inherit; }

/* ---------- LINKS & BUTTONS ---------- */
a { color: var(--brand); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brand-cyan); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Reusable modern button */
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 10px 24px rgba(0, 114, 188, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover,
.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 114, 188, 0.38);
  filter: brightness(1.03);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brand);
  background: #fff;
  border: 2px solid var(--brand);
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- SEO CONTENT BLOCK ---------- */
.seo-content {
  position: relative;
  width: auto !important;
  max-width: 1180px !important;
  margin: clamp(40px, 5vw, 64px) auto clamp(6px, 1vw, 12px) !important;
  padding: clamp(34px, 4.5vw, 56px) clamp(30px, 5vw, 70px) !important;
  background: linear-gradient(160deg, #ffffff 0%, #f1f8ff 100%) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 26px 64px rgba(0,64,126,0.09) !important;
  overflow: hidden;
}
.seo-content::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--brand-grad);
}
.seo-content::after {
  content: "";
  position: absolute; right: -70px; top: -70px;
  width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,174,239,0.14), transparent 70%);
  pointer-events: none;
}
.seo-content p {
  position: relative; z-index: 1;
  max-width: none !important; margin: 0 !important;
  font-size: clamp(17px, 1.5vw, 19.5px) !important;
  line-height: 2 !important;
  color: var(--body) !important;
  text-align: justify !important;
  text-align-last: center !important;
}
.seo-content b { color: var(--brand-dark); font-weight: 700; }
.seo-content a { color: var(--brand); font-weight: 600; }

/* ---------- RESPONSIVE GRID HELPERS ---------- */
@media (max-width: 767px) {
  .responsive-grid-2,
  .responsive-grid-3,
  .responsive-grid-4 { grid-template-columns: 1fr !important; }
  .responsive-container { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .responsive-grid-3,
  .responsive-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 768px) {
  .responsive-container { padding-left: clamp(20px, 3vw, 40px) !important; padding-right: clamp(20px, 3vw, 40px) !important; }
}

/* ---------- FORM ELEMENTS ---------- */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
textarea { resize: vertical; }
button, input, select, textarea { min-height: 44px; }

/* ---------- CONTAINERS ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 48px);
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* gradient text helper */
.text-gradient {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ================= ANIMATIONS & UI/UX POLISH ================= */
html { scroll-behavior: smooth; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* Entrance slide-in (used by the book-demo form) */
.slide-in { animation: slideInUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero slow zoom (Ken Burns) for a premium feel */
.hero-bg-image.active {
  animation: kenburns 16s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}

/* Buttons: shine + lift */
.btn-primary, .bookdemo-btn, .apply-btn, .dncl-hero-btn {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .bookdemo-btn::after, .apply-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after, .bookdemo-btn:hover::after, .apply-btn:hover::after { left: 130%; }

/* Links get a subtle animated underline on hover (content links) */
.seo-content a, .seo-text a {
  position: relative;
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
}
.seo-content a::after, .seo-text a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.seo-content a:hover::after, .seo-text a:hover::after { transform: scaleX(1); }

/* Fade-up helper for generic content blocks */
.fade-up { animation: slideInUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-bg-image.active { animation: none !important; }
  .slide-in, .fade-up { animation: none !important; }
}


/* ===== HOMEPAGE SECTIONS (stats / features / industries / cta) ===== */
.sec-eyebrow { display:inline-block; font-family:var(--font-head); font-weight:700; font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--brand); margin-bottom:12px; }
.blue-text { background:var(--brand-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }

.dncl-stats { padding: clamp(40px,6vw,70px) clamp(16px,4vw,40px); }
.stats-inner { max-width:1180px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(14px,2vw,24px); }
.stat-card { position:relative; text-align:center; padding:30px 18px; border-radius:var(--radius-lg); background:linear-gradient(160deg,#fff,#f4f8fc); border:1px solid var(--line); box-shadow:0 18px 40px rgba(0,64,126,.08); transition:transform .4s, box-shadow .4s; overflow:hidden; }
.stat-card::before { content:""; position:absolute; top:0; left:0; right:0; height:4px; background:var(--brand-grad); transform:scaleX(0); transform-origin:left; transition:transform .5s; }
.stat-card:hover { transform:translateY(-8px); box-shadow:0 28px 56px rgba(0,64,126,.16); }
.stat-card:hover::before { transform:scaleX(1); }
.stat-num { display:block; font-family:var(--font-head); font-weight:800; font-size:clamp(30px,4vw,44px); line-height:1; background:var(--brand-grad); -webkit-background-clip:text; background-clip:text; color:transparent; margin-bottom:8px; }
.stat-label { font-size:15.5px; color:var(--muted); font-weight:500; }

.dncl-features { position:relative; padding:clamp(56px,8vw,100px) clamp(16px,4vw,40px); overflow:hidden; }
.sec-orbs { position:absolute; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
.sec-orbs .orb { position:absolute; width:340px; height:340px; border-radius:50%; filter:blur(70px); opacity:.18; }
.sec-orbs .orb:nth-child(1) { background:#00aeef; top:-100px; left:-80px; }
.sec-orbs .orb:nth-child(2) { background:#0072bc; bottom:-120px; right:-90px; }
.features-head { position:relative; z-index:1; text-align:center; max-width:680px; margin:0 auto clamp(36px,5vw,56px); }
.features-head h2, .industries-head h2 { font-family:var(--font-head); font-weight:800; font-size:clamp(26px,3.4vw,40px); line-height:1.15; color:var(--ink); margin-bottom:12px; letter-spacing:-.01em; }
.features-head p { color:var(--body); font-size:16.5px; }
.features-grid { position:relative; z-index:1; max-width:1180px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(16px,2vw,26px); perspective:1200px; }
.feature-card { position:relative; padding:30px 26px; border-radius:var(--radius-lg); background:#fff; border:1px solid var(--line); box-shadow:0 16px 38px rgba(0,64,126,.07); transition:transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; transform-style:preserve-3d; }
.feature-card:hover { transform:translateY(-10px) rotateX(5deg); box-shadow:0 34px 60px rgba(0,64,126,.18); }
.feature-ic { width:56px; height:56px; display:flex; align-items:center; justify-content:center; border-radius:16px; background:linear-gradient(160deg, rgba(0,174,239,.16), rgba(0,114,188,.10)); color:var(--brand-dark); margin-bottom:18px; box-shadow:inset 0 0 0 1px rgba(0,114,188,.1); }
.feature-ic svg { width:28px; height:28px; }
.feature-card h3 { font-family:var(--font-head); font-weight:700; font-size:21px; color:var(--ink); margin-bottom:8px; }
.feature-card p { color:var(--body); font-size:16.5px; line-height:1.7; }

.dncl-industries { padding:clamp(40px,6vw,80px) clamp(16px,4vw,40px); background:var(--bg-soft); }
.industries-head { text-align:center; margin-bottom:clamp(28px,4vw,44px); }
.industries-grid { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.ind-card { text-align:center; padding:24px 12px; border-radius:var(--radius); background:#fff; border:1px solid var(--line); box-shadow:0 12px 26px rgba(0,64,126,.07); transition:transform .35s, box-shadow .35s; }
.ind-card:hover { transform:translateY(-6px); box-shadow:0 22px 40px rgba(0,64,126,.15); }
.ind-emoji { font-size:30px; display:block; margin-bottom:10px; }
.ind-card .lbl { font-family:var(--font-head); font-weight:600; font-size:15.5px; color:var(--ink); }

.dncl-cta { position:relative; margin:clamp(40px,6vw,80px) auto; max-width:1180px; padding:clamp(44px,6vw,74px) clamp(20px,4vw,60px); border-radius:var(--radius-lg); overflow:hidden; background:linear-gradient(135deg,#ffffff,#eaf3fb 60%,#e0f2fd); border:1px solid var(--line); color:var(--ink); text-align:center; box-shadow:0 30px 70px rgba(0,64,126,.14); }
.dncl-cta::before { content:""; position:absolute; top:0; left:0; right:0; height:5px; background:var(--brand-grad); }
.cta-orbs { position:absolute; inset:0; pointer-events:none; }
.cta-orbs .orb { position:absolute; border-radius:50%; filter:blur(60px); opacity:.3; }
.cta-orbs .orb:nth-child(1) { width:280px; height:280px; background:#9fe1f9; top:-90px; right:-50px; animation:orbFloat 13s ease-in-out infinite; }
.cta-orbs .orb:nth-child(2) { width:240px; height:240px; background:#57c6f5; bottom:-100px; left:-40px; animation:orbFloat 16s ease-in-out infinite reverse; }
.cta-inner { position:relative; z-index:1; }
.dncl-cta h2 { font-family:var(--font-head); font-weight:800; font-size:clamp(24px,3.4vw,38px); margin-bottom:12px; }
.dncl-cta h2 { color:var(--ink); }
.dncl-cta p { font-size:16.5px; color:var(--body); margin-bottom:26px; }
.cta-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.dncl-cta .dncl-hero-btn { background:var(--brand-grad); color:#fff!important; }
.dncl-cta .dncl-hero-btn.ghost { background:#fff; color:var(--brand-dark)!important; border:1.5px solid rgba(0,114,188,.3); }

@media (max-width:900px) {
  .stats-inner { grid-template-columns:repeat(2,1fr); }
  .features-grid { grid-template-columns:repeat(2,1fr); }
  .industries-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:560px) {
  .features-grid { grid-template-columns:1fr; }
  .industries-grid { grid-template-columns:repeat(2,1fr); }
}


/* ============ VIDEOS SECTION ============ */
.dncl-videos { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(60px,7vw,96px) clamp(20px,4vw,48px); }
.videos-head { text-align: center; margin-bottom: clamp(30px,4vw,50px); }
.videos-head h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px,3.4vw,40px); line-height: 1.15; color: var(--ink); margin-bottom: 12px; letter-spacing: -.01em; }
.videos-head p { color: var(--body); font-size: 16.5px; max-width: 640px; margin: 0 auto; }
.videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px,2.5vw,32px); }
.video-card { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0b1b2b; border: 1px solid var(--line); box-shadow: 0 22px 54px rgba(0,64,126,0.16); }
.video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; cursor: pointer; background: #000; display: block; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .4s ease; }
.video-thumb:hover img, .video-thumb:focus-visible img { transform: scale(1.06); filter: brightness(.82); }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 74px; height: 74px; border-radius: 50%; background: var(--brand-grad); box-shadow: 0 10px 30px rgba(0,114,188,0.5); transition: transform .25s ease, box-shadow .25s ease; }
.video-play::before { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #ffffff; }
.video-thumb:hover .video-play, .video-thumb:focus-visible .video-play { transform: translate(-50%,-50%) scale(1.12); box-shadow: 0 14px 38px rgba(0,114,188,0.65); }
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .videos-grid { grid-template-columns: 1fr; } .video-play { width: 60px; height: 60px; } }
