/* ==========================================================================
   Contentsvilla OPC Private Limited - corporate website
   One stylesheet for every page. Sections: tokens, base, layout, header, hero,
   components, product mockups, inner pages, legal, footer, motion, responsive.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette, taken from the logo: "Contents" blue and "Villa" orange */
  --blue: #00a0ff;        /* logo blue: accents and text on dark */
  --blue-deep: #0066e0;   /* links and blue text on white (5.3:1) */
  --blue-light: #38cfff;  /* the icon's light cyan-blue */
  --orange: #ff7040;      /* logo orange: accents and text on dark */
  --orange-deep: #e8501f; /* orange on white (icons, large numbers) */
  --amber: #ffa050;
  --ink: #061024;
  --navy: #0a1934;
  --navy-2: #10264d;
  --line: #e2e8f1;
  --line-dark: rgba(255, 255, 255, 0.1);
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #e8f4ff;
  --bg-warm: #fff1ea;
  --text: #14233d;
  --muted: #566479;
  --muted-light: #a9b8d0;
  --green: #16a34a;
  --grad: linear-gradient(135deg, #005fd1 0%, #0a8df5 100%);
  --grad-cool: linear-gradient(135deg, #38cfff 0%, #0a8df5 100%);
  --grad-warm: linear-gradient(135deg, #e8501f 0%, #ff7040 60%, #ffa050 100%);
  --grad-brand: linear-gradient(90deg, #0a8df5 0%, #00a0ff 45%, #ff7040 55%, #ffa050 100%);
  --shadow-sm: 0 1px 2px rgba(6, 16, 36, 0.06), 0 2px 8px rgba(6, 16, 36, 0.04);
  --shadow: 0 10px 30px -10px rgba(8, 50, 110, 0.25), 0 4px 12px rgba(6, 16, 36, 0.06);
  --shadow-lg: 0 30px 70px -20px rgba(8, 50, 110, 0.35), 0 12px 28px rgba(6, 16, 36, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 76px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 16.5px; line-height: 1.65; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; word-spacing: 0.06em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); letter-spacing: -0.03em; word-spacing: 0.09em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid #7cc8ff; outline-offset: 3px; border-radius: 6px; }
::selection { background: #cdeaff; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { top: 12px; text-decoration: none; }
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 3. Layout ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(0, 140, 255, 0.3), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(255, 112, 64, 0.16), transparent 60%), var(--navy); color: #d3deee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section--dark .section-head p { color: var(--muted-light); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-deep); background: var(--bg-tint); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #bfe6ff; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-dark); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .grad-text, .page-hero .grad-text, .section--dark .grad-text { background: linear-gradient(120deg, #ff7040 0%, #ffa050 45%, #ff7040 100%); -webkit-background-clip: text; background-clip: text; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 0.98rem/1 var(--font-body); padding: 16px 26px; border-radius: 14px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 12px 28px -8px rgba(0, 110, 230, 0.55); }
.btn-primary:hover { box-shadow: 0 18px 34px -8px rgba(0, 110, 230, 0.7); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-outline { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: #b9d4f2; box-shadow: var(--shadow); }
.btn-light { color: var(--ink); background: #fff; }
.btn-sm { padding: 12px 20px; font-size: 0.92rem; border-radius: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.site-header .bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-solid { background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(160%) blur(16px); border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(6, 16, 36, 0.25); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-icon { display: block; }
@media (max-width: 480px) { .brand-logo { height: 28px; } }
.site-header.is-solid .brand, .on-light .brand { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .has-menu > button {
  font: 600 0.95rem var(--font-body); color: rgba(255, 255, 255, 0.86); padding: 10px 14px; border-radius: 10px; background: none; border: 0; cursor: pointer; text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 6px; transition: color .2s, background .2s;
}
.site-header.is-solid .nav > a, .site-header.is-solid .nav .has-menu > button, .on-light .nav > a, .on-light .nav .has-menu > button { color: var(--text); }
.nav > a:hover, .nav .has-menu > button:hover, .nav > a.active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.site-header.is-solid .nav > a:hover, .site-header.is-solid .nav .has-menu > button:hover, .site-header.is-solid .nav > a.active { color: var(--blue-deep); background: var(--bg-tint); }
.has-menu { position: relative; }
.has-menu .chev { width: 14px; height: 14px; transition: transform .2s; }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); min-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-menu:hover .chev, .has-menu.open .chev { transform: rotate(180deg); }
.menu a { display: flex; gap: 14px; padding: 12px 14px; border-radius: 12px; color: var(--text); text-decoration: none !important; align-items: flex-start; }
.menu a:hover { background: var(--bg-soft); }
.menu .m-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-tint); color: var(--blue-deep); display: grid; place-items: center; flex: none; }
.menu strong { display: block; font: 700 0.95rem var(--font-head); color: var(--ink); }
.menu small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin-top: 2px; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; place-items: center; }
.site-header.is-solid .menu-toggle, .on-light .menu-toggle { color: var(--ink); border-color: var(--line); background: #fff; }

/* ---------- 6. Hero ---------- */
.hero, .page-hero { position: relative; background: var(--navy); color: #c9d6ea; overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(900px 520px at 78% 8%, rgba(0, 140, 255, 0.45), transparent 62%), radial-gradient(700px 480px at 8% 90%, rgba(255, 112, 64, 0.22), transparent 60%), radial-gradient(600px 400px at 50% 0%, rgba(56, 207, 255, 0.22), transparent 70%);
}
.hero::after, .page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: 0.5; animation: float 14s ease-in-out infinite; }
.orb.o1 { width: 340px; height: 340px; background: #0a8df5; top: -80px; right: 6%; }
.orb.o2 { width: 280px; height: 280px; background: #ff7040; bottom: -60px; left: 4%; animation-delay: -6s; opacity: 0.32; }
.hero { padding: calc(var(--header-h) + clamp(32px, 5vw, 64px)) 0 clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #b7c6de; max-width: 600px; margin-bottom: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 38px; color: #a9bad6; font-size: 0.92rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .icon { color: var(--blue-light); }
.page-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 90px)) 0 clamp(48px, 7vw, 84px); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 860px; }
.page-hero .lead { color: #b7c6de; font-size: 1.2rem; max-width: 720px; margin: 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; color: #9db3d6; margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { color: #bfe6ff; }
.crumbs .sep { opacity: 0.5; }

/* ---------- 7. Components ---------- */
.marquee { border-block: 1px solid var(--line); background: #fff; overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; font: 700 1rem var(--font-head); color: #8597b3; white-space: nowrap; }
.marquee-item .icon { color: var(--blue-deep); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c9ddf3; }
.card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad); margin-bottom: 22px; box-shadow: 0 10px 22px -8px rgba(0, 110, 230, 0.55); }
.card .ico .icon { width: 26px; height: 26px; }
.grid > .card { display: flex; flex-direction: column; }
.grid > .card .link-arrow { margin-top: auto; padding-top: 20px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { color: var(--muted); padding-left: 0; list-style: none; margin: 16px 0 0; }
.card li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 0.97rem; }
.card li .icon { color: var(--orange-deep); margin-top: 3px; width: 1.05em; height: 1.05em; }
.card .link-arrow { margin-top: 20px; align-self: flex-start; }
.card--dark { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); box-shadow: none; backdrop-filter: blur(8px); }
.card--dark:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); box-shadow: none; }
.card--dark p, .card--dark li { color: var(--muted-light); }
.card--dark h3 { color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: rgba(255, 255, 255, 0.03); padding: 34px 28px; text-align: center; }
.stat b { display: block; font: 800 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font-head); color: #fff; letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 10px; color: var(--muted-light); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font: 800 2rem var(--font-head); background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; color: var(--text); }
.pill .icon { color: var(--blue-deep); width: 1em; height: 1em; }
.section--dark .pill { background: rgba(255, 255, 255, 0.07); border-color: var(--line-dark); color: #dce6f4; }

.feature-row { display: flex; gap: 18px; align-items: flex-start; }
.feature-row .ico-sm { width: 46px; height: 46px; border-radius: 14px; background: var(--bg-tint); color: var(--blue-deep); display: grid; place-items: center; flex: none; }
.feature-row h3 { font-size: 1.08rem; margin-bottom: 4px; }
.feature-row p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.section--dark .feature-row .ico-sm { background: rgba(255, 255, 255, 0.08); color: var(--blue-light); }
.section--dark .feature-row p { color: var(--muted-light); }

.cta-band { border-radius: 32px; padding: clamp(40px, 6vw, 72px); text-align: center; color: #e2eaf6; position: relative; overflow: hidden; isolation: isolate; background: var(--navy); }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 340px at 85% 0%, rgba(0, 140, 255, 0.6), transparent 60%), radial-gradient(600px 320px at 0% 100%, rgba(255, 112, 64, 0.38), transparent 60%); }
.cta-band h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.cta-band p { max-width: 620px; margin: 0 auto 2rem; color: #bfcde3; font-size: 1.12rem; }
.cta-band .btn-row { justify-content: center; }

details.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0; margin-bottom: 12px; transition: box-shadow .2s; }
details.faq[open] { box-shadow: var(--shadow); border-color: #c9ddf3; }
details.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font: 700 1.05rem var(--font-head); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.6rem; line-height: 1; color: var(--blue-deep); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }

.badge { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: #ecfdf5; color: #047857; }
.badge.indigo { background: var(--bg-tint); color: var(--blue-deep); }

/* ---------- 8. Product mockups (pure CSS) ---------- */
.mock { background: #fff; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: var(--shadow-lg); overflow: hidden; color: var(--text); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #f3f7fc; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d2deec; display: block; }
.mock-bar i:nth-child(1) { background: #fb7185; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 10px; font-size: 0.78rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 12px; }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.m-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.m-chip { font-size: 0.72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--bg-tint); color: var(--blue-deep); }
.m-chip.on { background: var(--grad); color: #fff; }
.m-line { height: 9px; border-radius: 6px; background: #e4ecf6; }
.m-line.w90 { width: 90%; } .m-line.w70 { width: 70%; } .m-line.w50 { width: 50%; } .m-line.w30 { width: 30%; }
.m-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.m-post { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; }
.m-thumb { width: 74px; height: 74px; border-radius: 12px; background: linear-gradient(135deg, #38cfff, #0a8df5); }
.m-thumb.t2 { background: linear-gradient(135deg, #ffa050, #ff7040); }
.m-thumb.t3 { background: linear-gradient(135deg, #7fdcff, #ffa050); }
.m-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.m-cal b { height: 34px; border-radius: 8px; background: #eff4fa; display: block; position: relative; }
.m-cal b.has::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 6px; border-radius: 4px; background: var(--grad); }
.m-cal b.has2::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 6px; border-radius: 4px; background: var(--grad-warm); }
.m-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.m-bars i { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad-cool); display: block; }
.floating { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: 0.85rem; color: var(--text); animation: float 9s ease-in-out infinite; }
.floating b { display: block; font: 800 1.05rem var(--font-head); color: var(--ink); }
.floating .dot { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.visual { position: relative; }
.visual .floating.f1 { left: -30px; bottom: 34px; }
.visual .floating.f2 { right: -18px; top: 26px; animation-delay: -4s; }

.phone { width: 270px; margin-inline: auto; border-radius: 40px; padding: 11px; background: #07142b; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.15); }
.phone-screen { border-radius: 30px; background: #fff; overflow: hidden; min-height: 500px; display: flex; flex-direction: column; }
.ph-hero { height: 150px; background: linear-gradient(135deg, #ffa050, #ff7040 55%, #e8501f); padding: 18px; display: flex; align-items: flex-end; color: #fff; font: 800 1.25rem/1.1 var(--font-head); }
.ph-body { padding: 14px; display: grid; gap: 10px; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-tile { border-radius: 14px; background: #f3f7fc; padding: 10px; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.ph-tile i { display: block; height: 54px; border-radius: 10px; background: linear-gradient(135deg, #ffd9b8, #ffab85); margin-bottom: 8px; }
.ph-tile.b i { background: linear-gradient(135deg, #b8ecff, #7fc6ff); }
.ph-tile.c i { background: linear-gradient(135deg, #c9f3ff, #5fd6ff); }
.ph-tile.d i { background: linear-gradient(135deg, #ffe0cc, #9fd4ff); }
.ph-btn { margin-top: 4px; border-radius: 12px; padding: 11px; text-align: center; color: #fff; font-weight: 800; font-size: 0.82rem; background: var(--grad); }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 12px; border-top: 1px solid var(--line); }
.ph-tabs i { width: 22px; height: 22px; border-radius: 7px; background: #dbe5f1; display: block; }
.ph-tabs i:first-child { background: var(--orange); }

.product-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 32px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.product-card .pc-copy { padding: clamp(32px, 5vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.product-card .pc-art { padding: clamp(28px, 4vw, 48px); background: radial-gradient(500px 300px at 80% 0%, rgba(0, 140, 255, 0.4), transparent 60%), radial-gradient(400px 260px at 10% 100%, rgba(255, 112, 64, 0.25), transparent 60%), var(--navy); display: grid; place-items: center; position: relative; overflow: hidden; min-height: 380px; }
.product-card.reverse .pc-art { order: -1; }
.product-card + .product-card { margin-top: 32px; }
.pc-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 14px; }
.pc-points { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 10px; }
.pc-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.pc-points .icon { color: var(--orange-deep); margin-top: 4px; }

/* ---------- 9. Inner pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: #344560; }
.value-num { font: 800 3rem/1 var(--font-head); background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.contact-card + .contact-card { margin-top: 14px; }
.contact-card .ico-sm { width: 46px; height: 46px; border-radius: 14px; background: var(--bg-tint); color: var(--blue-deep); display: grid; place-items: center; flex: none; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fbfdff; border: 1px solid #d3deeb; border-radius: 12px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(0, 140, 255, 0.16); background: #fff; }
.field .err { display: none; color: #dc2626; font-size: 0.84rem; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.form-ok { display: none; text-align: center; padding: 30px 10px; }
.form-ok .tick { width: 64px; height: 64px; border-radius: 50%; background: #ecfdf5; color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.form-ok .tick .icon { width: 30px; height: 30px; }
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.not-found .big { font: 800 clamp(6rem, 18vw, 12rem)/1 var(--font-head); letter-spacing: -0.06em; }

/* ---------- 10. Legal ---------- */
.legal-wrap { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.legal-wrap > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-soft); max-height: calc(100vh - var(--header-h) - 60px); overflow: auto; }
.toc h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: 0.92rem; text-decoration: none !important; }
.toc a:hover, .toc a.on { background: #fff; color: var(--blue-deep); box-shadow: var(--shadow-sm); }
.legal h2 { font-size: 1.5rem; margin-top: 2.4rem; padding-top: 0.4rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.legal p, .legal li { color: #33445f; }
.legal li { margin-bottom: 0.4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); font-family: var(--font-head); color: var(--ink); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #9db3d6; font-size: 0.92rem; margin-top: 22px; }
.legal-meta span { display: inline-flex; gap: 8px; align-items: center; }
.callout { border-left: 4px solid var(--orange); background: var(--bg-warm); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 1.4rem 0; color: #33445f; }

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--ink); color: #93a3bf; padding: 80px 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 160, 255, 0.85), rgba(255, 112, 64, 0.85), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); padding-bottom: 56px; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer p { font-size: 0.95rem; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-head); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.site-footer a { color: #93a3bf; text-decoration: none !important; font-size: 0.95rem; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; font-size: 0.93rem; line-height: 1.7; margin-top: 18px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 12px; color: #c9d6ea; background: rgba(255, 255, 255, 0.04); transition: color .2s, background .2s, border-color .2s, transform .2s; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials a:hover { color: #fff; transform: translateY(-2px); }
.socials .social-facebook:hover { background: #1877f2; border-color: #1877f2; }
.socials .social-x:hover { background: #000; border-color: rgba(255, 255, 255, 0.35); }
.socials .social-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0 30px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; font-size: 0.88rem; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- 12. Cookie banner ---------- */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 300; max-width: 760px; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px 18px; display: none; gap: 14px; align-items: center; flex-wrap: wrap; }
.cookie.show { display: flex; animation: rise .4s ease both; }
.cookie p { margin: 0; flex: 1 1 300px; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.cookie .btn { white-space: nowrap; }
.cookie .btn-row { gap: 10px; }
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--grad); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .25s; z-index: 90; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- 13. Motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  /* in two-column layouts, centre a lone last item instead of leaving a gap beside it */
  .steps > .step:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; overflow: auto;
    transform: translateX(100%); transition: transform .3s ease; border-top: 1px solid var(--line);
  }
  .nav.open { transform: none; }
  /* backdrop-filter would make the header the containing block of the fixed nav and squash it */
  .site-header.menu-open { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav > a, .nav .has-menu > button { color: var(--text) !important; font-size: 1.05rem; padding: 14px 12px; width: 100%; justify-content: space-between; }
  .nav > a:hover, .nav .has-menu > button:hover, .nav > a.active { background: var(--bg-soft); color: var(--blue-deep) !important; }
  .menu { position: static; transform: none !important; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 8px; min-width: 0; display: none; }
  .has-menu.open .menu { display: block; }
  .nav .mobile-cta, .nav .mobile-cta:hover { display: inline-flex; margin-top: 14px; justify-content: center; color: #fff !important; background: var(--grad); }
  .hero-grid, .split, .contact-grid, .product-card, .legal-wrap { grid-template-columns: 1fr; }
  .product-card.reverse .pc-art { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
  .toc { position: static; max-height: none; }
  .visual .floating.f1 { left: 8px; } .visual .floating.f2 { right: 8px; }
}
@media (min-width: 961px) { .nav .mobile-cta { display: none; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .grid-3 > :last-child:nth-child(odd), .steps > .step:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .stats { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .card { padding: 26px; }
  .stat { padding: 26px 14px; }
  .legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal th, .legal td { min-width: 140px; padding: 10px 12px; }
  .visual .floating { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media print {
  .site-header, .site-footer, .cookie, .to-top, .toc { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0; }
  .page-hero h1, .page-hero .lead { color: #000; }
}
