/* ============================
   Dunvion Site styles v2
   Scope: #dunvionApp
============================ */

/* ===== Base + tokens ===== */
:root{
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --bg: #0b1224;
  --bg-2: #0e1530;
  --text: #0f172a;
  --ink: #0b1324;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-2:#f8fafc;
  --border: #e5e7eb;

  --accent:#1e479b;
  --accent-2:#173a80;
  --accent-3:#0f1d3b;

  --radius-lg: 16px;
  --radius-md: 12px;

  --shadow-1: 0 6px 24px rgba(0,0,0,.10);
  --shadow-2: 0 8px 28px rgba(0,0,0,.20);

  --header-h: 64px;
  --footer-h: 56px;
}

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

body{
  font-family: var(--font-sans);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  /* layered background for depth */
  background:
    radial-gradient(1000px 400px at 10% -10%, rgba(30,71,155,.25), transparent 60%),
    radial-gradient(900px 400px at 110% 20%, rgba(23,58,128,.25), transparent 60%),
    linear-gradient(180deg, #0b1224 0%, #0e1530 40%, #0b1224 100%);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

h1,h2,h3,h4,h5,h6,p,ul,ol,figure{ margin:0; }

body.has-fixed-footer{ padding-bottom:var(--footer-h); }

#dunvionApp{}
#dunvionApp *{ box-sizing:border-box; }

/* ===== Header ===== */
.td-header{
  height:var(--header-h);
  background:rgba(15,29,59,.85);
  backdrop-filter: blur(6px);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.td-header .wrap{
  height:100%; max-width:1200px; margin:0 auto; padding:0 18px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.td-brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px; }
.td-brand .logo{ width:36px;height:36px;border-radius:10px; display:grid;place-items:center; background:#1e479b; box-shadow:0 2px 6px rgba(0,0,0,.2); }
.td-brand span{ font-size:18px; color:#fff; }
.td-nav{ display:flex; align-items:center; gap:16px; }
.td-nav a{ color:#cdd6f4; font-size:14px; }
.td-nav a:hover{ color:#fff; }

/* ===== Footer ===== */
.td-footer{
  position:fixed; left:0; right:0; bottom:0; height:var(--footer-h);
  background:#f8fafc; border-top:1px solid var(--border);
  display:flex; align-items:center; z-index:50;
}
.td-footer .wrap{
  max-width:1200px; margin:0 auto; padding:0 18px; width:100%;
  display:flex; justify-content:space-between; gap:10px; color:#334155; font-size:14px;
}
.td-footer a{ color:#1e479b; }
.td-footer a:hover{ text-decoration:underline; }

/* ===== Main layout ===== */
#dunvionApp .home-wrap{
  max-width:1200px; margin:0 auto; padding:28px 18px 72px;
  min-height:calc(100vh - var(--header-h) - var(--footer-h));
  display:grid; grid-template-columns:1fr; gap:28px;
}

/* ===== Hero v2 ===== */
.hero-landing.is-updated{
  position:relative;
  border-radius:var(--radius-lg);
  padding:0;
  overflow:hidden;
  color:#fff;
  box-shadow: var(--shadow-2);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 40%, var(--accent-3) 100%);
}
.hero-landing .bg-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  mask-image: radial-gradient(1200px 400px at 10% -10%, #000 55%, transparent 70%);
  pointer-events:none;
}
.hero-inner{
  display:grid; grid-template-columns: 1.1fr .9fr; gap:16px;
  padding:44px 26px;
}
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; padding:34px 22px; }
}

.hero-copy h1{ font-size:56px; line-height:1.02; margin:6px 0 8px; letter-spacing:-0.02em; }
.hero-copy .sub{ font-size:18px; opacity:.98; max-width:66ch; }
.badge{
  display:inline-block; font-size:12px; font-weight:600; letter-spacing:.3px;
  background:rgba(255,255,255,.16); color:#fff; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
}

.hero-points{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; margin:14px 0 18px; padding:0; }
@media (max-width:700px){ .hero-points{ grid-template-columns:1fr; } }
.hero-points li{ list-style:none; display:flex; gap:8px; align-items:center; opacity:.98; }
.hero-points i{ width:20px; height:20px; }

.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; }
.btn-primary{
  background:#fff; color:#0f1d3b; padding:12px 16px; border-radius:12px; font-weight:700;
  box-shadow:0 6px 18px rgba(0,0,0,.18); transform: translateZ(0);
}
.btn-primary:hover{ transform: translateY(-1px); }
.btn-ghost{
  background: transparent; color:#fff; border:1px solid rgba(255,255,255,.45);
  padding:12px 16px; border-radius:12px; font-weight:600;
}

.hero-card{ display:grid; place-items:center; }
.dv-card{
  width:100%; max-width:520px; aspect-ratio: 4/3;
  border-radius:18px; position:relative; overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 30px 60px rgba(0,0,0,.25);
}
.dv-card::after{
  content:""; position:absolute; inset:auto -20% -40% -20%; height:60%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255,255,255,.25) 0%, transparent 70%);
}
.dv-lines{
  position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.06) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06), rgba(255,255,255,.06) 1px, transparent 1px, transparent 32px);
  mix-blend-mode: overlay;
}
.dv-shape{
  position:absolute; inset:0; display:grid; place-items:center; color:#fff;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.35));
}

/* ===== Sections ===== */
.section{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:22px;
  box-shadow: var(--shadow-1);
}
.section > h2{ font-size:24px; margin-bottom:10px; color: var(--ink); }

/* Products */
.card-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:14px; }
.card{
  background: var(--surface-2);
  border:1px solid var(--border);
  border-radius: 14px;
  padding:14px;
  display:flex; flex-direction:column; justify-content:space-between; gap:12px;
}
.card.muted{ background:#f6f8fb; }
.card h3{ display:flex; align-items:center; gap:8px; font-size:18px; color: var(--accent-3); }
.card p{ color:#374151; font-size:14px; }
.card footer{ margin-top:4px; }
.btn-inline{ color: var(--accent); font-weight:700; border-bottom:2px solid rgba(30,71,155,.25); padding-bottom:2px; }
.btn-inline:hover{ border-color: rgba(30,71,155,.55); }

/* Values */
.value-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:14px; }
.value{
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:14px; padding:14px;
}
.value i{ width:22px; height:22px; color: var(--accent-3); }
.value h4{ margin:6px 0 4px; font-size:16px; color: var(--ink); }
.value p{ font-size:14px; color:#374151; }

/* Contact */
.contact-cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:14px; }
.contact-card{
  display:flex; gap:10px; align-items:flex-start;
  background:var(--surface-2); border:1px solid var(--border); border-radius:14px; padding:14px;
}
.contact-card i{ width:22px; height:22px; color: var(--accent-3); }
.contact-card h4{ margin:0 0 4px; font-size:15px; color: var(--ink); }
.contact-card p{ margin:0; color:#374151; font-size:14px; }

/* CTA banner */
.cta-banner{
  border-radius: var(--radius-lg);
  padding:0;
  background:
    radial-gradient(400px 200px at 10% 10%, rgba(30,71,155,.25), transparent 60%),
    linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%);
  border:1px solid rgba(255,255,255,.1);
  color:#fff;
  box-shadow: var(--shadow-2);
}
.cta-inner{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:18px 22px;
}
.cta-text h3{ font-size:20px; margin:0 0 2px; }
.cta-text p{ margin:0; opacity:.9; }
@media (max-width:740px){ .cta-inner{ flex-direction:column; align-items:flex-start; } }
