/* DELTRION Education & Technologies — website styles
   Layout concept: the "open book" — key bands split into a violet Learning page and a magenta Technology page,
   joined by a ribbon seam; everything else stays calm white/ink so the brand moments carry the weight. */
:root {
  --paper: #FBFAFE;
  --surface: #FFFFFF;
  --tint: #F3EFFC;
  --blush: #FDEBF4;
  --ink: #1E1660;
  --text: #2A2552;
  --muted: #5B5870;
  --line: #E4DEF1;
  --violet: #6A3FC8;
  --pink: #C2287F;
  --night: #140E3A;
  --night-2: #22176A;
  --on-night: #F3EEFF;
  --on-night-muted: #CBC0F0;
  --display: "Poppins", "Segoe UI", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
  --r: 14px;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #100C29; --surface: #19143B; --tint: #211A4D; --blush: #2A1640;
    --ink: #F1EDFF; --text: #DCD6F5; --muted: #ACA4CF; --line: #2F2862;
    --violet: #AE92F5; --pink: #F48BC6; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #100C29; --surface: #19143B; --tint: #211A4D; --blush: #2A1640;
  --ink: #F1EDFF; --text: #DCD6F5; --muted: #ACA4CF; --line: #2F2862;
  --violet: #AE92F5; --pink: #F48BC6; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pink); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 0.98rem; padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, #6A3FC8, #C2287F); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.on-night .btn-ghost { color: var(--on-night); }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.02em; background: linear-gradient(90deg, #6A3FC8 0%, #A33AB0 55%, #D8318F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name span { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--display); font-size: 0.92rem; font-weight: 500; color: var(--text); text-decoration: none; padding: 9px 12px; border-radius: 10px; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { color: var(--violet); background: var(--tint); }
.nav .btn { margin-left: 8px; padding: 10px 18px; color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-family: var(--display); font-weight: 600; color: var(--ink); cursor: pointer; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); gap: 2px; }
  .nav:not(.open) { display: none; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
.notice { background: linear-gradient(90deg, #22176A, #5B2FB0 60%, #A12A82); color: #fff; font-size: 0.86rem; }
.notice .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; padding-block: 9px; text-align: center; }
.notice a { color: #fff; font-weight: 600; }

/* ---------- hero (always night) ---------- */
.on-night { background: radial-gradient(120% 90% at 70% 10%, #3B2290 0%, var(--night-2) 40%, var(--night) 100%); color: var(--on-night-muted); }
.on-night h1, .on-night h2, .on-night h3 { color: var(--on-night); }
.on-night .eyebrow { color: #F7A8D5; }
.on-night .lead, .on-night .muted { color: var(--on-night-muted); }
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 .grad { background: linear-gradient(90deg, #B79BFF, #F48BC6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; box-shadow: 0 30px 80px rgba(6, 3, 30, .55); border: 1px solid rgba(255,255,255,.12); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.formerly { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--on-night-muted); }
.formerly img { width: 64px; background: #fff; border-radius: 8px; padding: 4px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.page-hero { padding-block: clamp(56px, 8vw, 92px); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }

/* ---------- open-book split band ---------- */
.book { display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; overflow: hidden; position: relative; }
.book > div { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.book .page-learn { background: linear-gradient(160deg, #5A33B8, #7B4FD6); color: #EFE8FF; }
.book .page-tech { background: linear-gradient(200deg, #B8247A, #DE3B98); color: #FFE9F5; }
.book h3, .book h2 { color: #fff; }
.book .eyebrow { color: rgba(255,255,255,.8); }
.book::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.65), rgba(255,255,255,.0)); }
.book ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; } .book::after { display: none; } }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .tag { align-self: flex-start; font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--violet); }
.card .tag.pink { background: var(--blush); color: var(--pink); }
.card ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 4px; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--violet); flex: none; }
.icon.pink { background: var(--blush); color: var(--pink); }
.icon svg { width: 26px; height: 26px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.stat { padding: 28px 26px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.93rem; color: var(--muted); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(2) { border-right: none; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.photo { border-radius: 22px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.band-tint { background: var(--tint); }
.name-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.name-parts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.name-parts b { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.name-parts .p1 b { color: var(--violet); } .name-parts .p2 b { color: #A33AB0; } .name-parts .p3 b { color: var(--pink); }
@media (max-width: 560px) { .name-parts { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: "Step " counter(step); font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.change-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.change-table table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.98rem; }
.change-table th, .change-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.change-table th { font-family: var(--display); font-size: 0.8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--tint); }
.change-table tr:last-child td { border-bottom: none; }

.video-frame { border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; max-width: 100%; box-shadow: 0 24px 60px rgba(30, 22, 96, .25); }
.video-frame video { width: 100%; height: 100%; }

.branch { gap: 10px; }
.branch h3 { font-size: 1.15rem; }
.branch .addr { color: var(--muted); font-size: 0.95rem; }
.branch dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.95rem; }
.branch dt { color: var(--muted); }
.branch dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); }
.copy { background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 0.78rem; padding: 2px 8px; margin-left: 6px; color: var(--muted); cursor: pointer; }

.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { font-family: var(--display); font-weight: 600; color: var(--ink); cursor: pointer; font-size: 1.06rem; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 70ch; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
input, select, textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
textarea { min-height: 130px; resize: vertical; }
.form-status { padding: 14px 16px; border-radius: 10px; background: var(--tint); color: var(--ink); }

.cta { border-radius: 26px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta > div { max-width: 640px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); padding-block: 64px 32px; font-size: 0.94rem; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: var(--on-night); font-size: 0.82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-logo { width: 220px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.reveal { animation: rise .7s ease both; }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
