/* Ramevio homepage D — cinematic dark + animated report (visual layer only) */
:root {
  --ink: #070b18;
  --ink-2: #0d1428;
  --ink-3: #111a33;
  --amber: #6ea8ff;
  --amber-2: #9cc4ff;
  --grad: linear-gradient(100deg, #16cfff 0%, #2f6bff 48%, #a855f7 100%);
  --cream: #eef2fb;
  --text: #a9b3c7;
  --dim: #7d8aa3;
  --white: #ffffff;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.hd { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.6 var(--sans); overflow-x: hidden; }
:where(.hd) img { max-width: 100%; height: auto; display: block; }
:where(.hd) :is(h1, h2, h3) { margin: 0; font-weight: 400; }
:where(.hd) p { margin: 0; }
:where(.hd) a { color: inherit; }
:where(.hd) svg { display: block; }
.hd-wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }
.hd-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: #2f6bff; color: #ffffff; }
.hd-skip:focus { left: 12px; }
.hd :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.hd-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 28px; border-radius: 999px; border: 1px solid transparent; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.hd-btn:hover { transform: translateY(-2px); }
.hd-btn-sm { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.hd-btn-amber { background: var(--grad); background-size: 140% 100%; background-position: 0 0; color: #ffffff; box-shadow: 0 12px 30px -12px rgba(47,107,255,.7); transition: transform .2s ease, background-position .4s ease; }
.hd-btn-amber:hover { background-position: 100% 0; }
.hd-btn-white { background: var(--white); color: var(--ink); }
.hd-btn-dark { background: var(--ink); color: var(--white); }
.hd-btn-outline { border-color: rgba(7,11,24,.25); color: var(--ink); font-weight: 600; }
.hd-btn-outline:hover { border-color: var(--ink); }
.hd-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }

/* hero */
.hd-hero { position: relative; overflow: hidden; min-height: 860px; display: flex; flex-direction: column; }
.hd-hero-bg { position: absolute; inset: -6%; background: radial-gradient(55% 65% at 72% 42%, #1b3a8f 0%, #0d1838 45%, var(--ink) 80%); animation: hd-drift 22s ease-in-out infinite; }
.hd-hero-light { position: absolute; left: 35%; top: -10%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(120,170,255,.18), rgba(120,170,255,0)); animation: hd-light 9s ease-in-out infinite; pointer-events: none; }
.hd-header { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; padding: 26px 0; }
.hd-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: .3em; color: var(--white) !important; text-decoration: none; }
.hd-brand img { width: auto; height: 34px; }
.hd-nav { display: flex; gap: 32px; margin-left: auto; }
.hd-nav a { font-size: 15px; color: rgba(255,255,255,.75); text-decoration: none; }
.hd-nav a:hover { color: var(--white); }
.hd-hero-inner { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; gap: 40px; padding: 48px 0 110px; }
.hd-hero-copy { flex: 1 1 560px; min-width: 0; }
.hd-hero h1 { margin-top: 24px; font-family: var(--serif); font-size: clamp(48px, 6.4vw, 88px); line-height: .98; color: var(--white); }
.hd-hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hd-lead { margin-top: 28px; max-width: 500px; font-size: 20px; line-height: 1.6; color: rgba(255,255,255,.8); }
.hd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.hd-play-link { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; font-weight: 500; color: var(--white) !important; text-decoration: none; }
.hd-play-dot { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); transition: background .2s; }
.hd-play-link:hover .hd-play-dot { background: rgba(255,255,255,.22); }
.hd-play-dot svg { width: 16px; height: 16px; fill: var(--white); }
.hd-micro { margin-top: 30px; font-size: 14px; color: rgba(255,255,255,.6); }

.hd-hero-art { position: relative; flex: 1 1 620px; min-width: 0; }
.hd-hero-art::before { content: ""; position: absolute; inset: 8% 6% -4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(47,107,255,.45), rgba(168,85,247,.18) 60%, transparent); filter: blur(40px); z-index: 0; }
.hd-hero-frame { position: relative; z-index: 1; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: var(--ink-2); box-shadow: 0 60px 120px -40px rgba(0,0,0,.9); transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transition: transform .6s ease; }
.hd-hero-frame:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.hd-hero-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hd-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; color: rgba(255,255,255,.55); animation: hd-cue 2s ease-in-out infinite; }
.hd-cue svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hd-fa { animation: hd-floatA 7s ease-in-out infinite; }
.hd-fb { animation: hd-floatB 8s ease-in-out infinite; }
.hd-fc { animation: hd-floatC 6.5s ease-in-out infinite; }
.hd-rise { animation: hd-rise .9s ease-out both; }
.hd-d1 { animation-delay: .15s; }
.hd-d2 { animation-delay: .3s; }

/* demo */
.hd-demo { padding: 110px 0 80px; text-align: center; }
.hd-demo h2, .hd-contact h2 { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; color: var(--white); }
.hd-sub { margin: 18px auto 0; max-width: 560px; font-size: 18px; }
.hd-video { margin: 56px auto 0; max-width: 1080px; }
.hd-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 22px; background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 80px 140px -60px rgba(47,107,255,.3); }
.hd-video figcaption { margin-top: 14px; font-size: 13px; color: var(--dim); }

/* bento */
.hd-bento-section { padding: 60px 0 120px; }
.hd-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 300px 300px; gap: 18px; }
.hd-tile { position: relative; overflow: hidden; border-radius: 22px; text-decoration: none; }
.hd-tile img { transition: transform .6s ease; }
.hd-tile:hover img { transform: scale(1.04); }
.hd-tile-cover { grid-column: span 2; grid-row: span 2; background: #dfe6f5; }
.hd-tile-cover img { position: absolute; left: 50%; top: 40px; width: 58%; margin-left: -29%; border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.hd-tile-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; display: grid; gap: 6px; background: linear-gradient(180deg, rgba(7,11,24,0), rgba(7,11,24,.88)); color: var(--white); }
.hd-tile-caption strong { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.hd-tile-caption span { font-size: 15px; color: var(--amber); }
.hd-tile-arc { grid-column: span 2; background: var(--ink-3); padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.hd-arc { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; color: var(--white); }
.hd-arc em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hd-tile-page { background: #eef2fb; }
.hd-tile-page img { position: absolute; left: 12%; top: 24px; width: 76%; border-radius: 4px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); }
.hd-tile-amber { background: var(--grad); color: #ffffff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.hd-tile-amber svg { width: 32px; height: 32px; fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hd-tile-amber strong { font-size: 22px; }
.hd-tile-amber p { margin-top: 6px; font-size: 15px; }
.hd-pages { list-style: none; margin: 40px 0 0; padding: 0 0 8px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.hd-pages img { width: 100%; border-radius: 6px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); transition: transform .3s ease; }
.hd-pages li:hover img { transform: translateY(-6px); }
.hd-pages span { display: block; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--white); }
.hd-pages b { color: var(--amber); font-weight: 700; }

/* pricing */
.hd-pricing { background: var(--cream); color: #2b3550; padding: 110px 0; }
.hd-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.hd-pricing h2 { font-family: var(--serif); font-size: clamp(40px, 4.8vw, 64px); line-height: 1.02; color: var(--ink); }
.hd-pricing p { font-size: 19px; line-height: 1.65; }

/* contact */
.hd-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding: 110px 0; align-items: start; }
.hd-contact h2 { margin-top: 14px; }
.hd-sub-left { margin-top: 16px; font-size: 18px; }
.hd-guides { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hd-guides a { color: var(--amber); text-decoration: none; font-weight: 500; }
.hd-guides a:hover { text-decoration: underline; }
.hd-form { display: grid; gap: 8px; padding: 28px; border-radius: 20px; background: var(--ink-3); border: 1px solid rgba(255,255,255,.08); }
.hd-form label { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--white); }
.hd-form input, .hd-form textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--white); font: 16px var(--sans); }
.hd-form input:focus, .hd-form textarea:focus { outline: none; border-color: var(--amber); }
.hd-form .hd-btn { margin-top: 16px; }
.launch-status { min-height: 1.2em; font-size: 14px; color: #9fdcb5; }

/* footer */
.hd-footer { border-top: 1px solid rgba(255,255,255,.08); }
.hd-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0 44px; font-size: 14px; color: var(--dim); }
.hd-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.hd-footer nav a { color: #b4bdd0; text-decoration: none; }
.hd-footer nav a:hover { color: var(--white); }

/* keyframes */
@keyframes hd-drift { 0%, 100% { transform: scale(1.05) translate(0, 0); } 50% { transform: scale(1.15) translate(-3%, 2%); } }
@keyframes hd-light { 0%, 100% { opacity: .3; transform: translateX(-12%); } 50% { opacity: .75; transform: translateX(12%); } }
@keyframes hd-floatA { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-16px) rotate(-7deg); } }
@keyframes hd-floatB { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-22px) rotate(3deg); } }
@keyframes hd-floatC { 0%, 100% { transform: translateY(0) rotate(10deg); } 50% { transform: translateY(-12px) rotate(9deg); } }
@keyframes hd-chip { 0% { transform: translate(-40px, 30px); opacity: 0; } 20% { opacity: 1; } 70% { transform: translate(0, 0); opacity: 1; } 100% { opacity: 0; } }
@keyframes hd-rise { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes hd-cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* responsive: two columns only once there is room */
@media (max-width: 1023px) {
  .hd-hero-inner { flex-direction: column; align-items: stretch; padding-top: 24px; }
  .hd-hero-art { flex: none; width: 100%; max-width: 760px; margin: 8px auto 0; }
  .hd-hero-frame { transform: none; }
  .hd-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hd-pricing-grid, .hd-contact { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 719px) {
  .hd-wrap { width: calc(100% - 32px); }
  .hd-nav { display: none; }
  .hd-header .hd-btn-sm { margin-left: auto; }
  .hd-hero { min-height: 0; }
  .hd-lead { font-size: 18px; }
  .hd-demo, .hd-contact { padding: 80px 0; }
  .hd-bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .hd-tile-cover, .hd-tile-arc { grid-column: auto; grid-row: auto; }
  .hd-tile-cover { min-height: 420px; }
  .hd-tile-page { min-height: 300px; }
  .hd-tile-amber { min-height: 200px; gap: 24px; }
  .hd-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-pricing { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hd *, .hd *::before, .hd *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
