:root {
  --bg: #050817;
  --bg-soft: #0a1028;
  --surface: rgba(13, 22, 54, .76);
  --surface-solid: #0c1431;
  --surface-light: rgba(255, 255, 255, .065);
  --line: rgba(150, 169, 255, .2);
  --line-bright: rgba(130, 111, 255, .48);
  --text: #f7f7ff;
  --muted: #aab3cf;
  --violet: #8a5cff;
  --purple: #c44dff;
  --blue: #4f8fff;
  --pink: #f05dde;
  --gold: #f0d7a7;
  --gradient: linear-gradient(135deg, #7355ff 0%, #b145f2 52%, #4f8fff 100%);
  --shadow: 0 24px 80px rgba(0, 0, 0, .36);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 10%, rgba(74, 67, 201, .17), transparent 30rem),
    radial-gradient(circle at 10% 56%, rgba(112, 55, 179, .12), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .7) .7px, transparent .7px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
button { color: inherit; }
main { flex: 1; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 92px 0; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 10px 16px; border-radius: 8px; background: #fff; color: #111; }
.skip-link:focus { top: 16px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 25px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: var(--gradient);
  box-shadow: 0 10px 34px rgba(132, 78, 255, .36), inset 0 1px rgba(255, 255, 255, .2);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 15px 40px rgba(132, 78, 255, .5); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(150, 112, 255, .7); outline-offset: 3px; }
.button-small { min-height: 40px; padding: 0 17px; border-radius: 10px; font-size: .88rem; }
.button-secondary { background: rgba(122, 76, 255, .14); border-color: rgba(175, 143, 255, .48); box-shadow: none; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: #b8a9ff; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  border-bottom: 1px solid transparent;
  background: rgba(4, 7, 20, .62);
  backdrop-filter: blur(18px);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { background: rgba(4, 7, 20, .9); border-color: var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, .24); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand-mark {
  width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 50px;
}
.brand-mark img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(132, 91, 255, .32));
}
.brand strong { display: block; font-size: 1.04rem; line-height: 1; letter-spacing: .18em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: .57rem; line-height: 1; letter-spacing: .04em; }
.custom-logo { max-height: 50px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul, .footer-nav ul { display: flex; align-items: center; gap: 26px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { position: relative; color: #dce2f6; font-size: .85rem; font-weight: 600; }
.primary-nav a::after { position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; content: ""; background: var(--gradient); transition: right .2s; }
.primary-nav a:hover::after, .primary-nav .current-menu-item a::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-toggle { width: 38px; height: 38px; border: 0; background: transparent; color: #e8ebff; font-size: 1.55rem; cursor: pointer; }
.header-search { position: absolute; top: 100%; left: 0; right: 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(5, 8, 23, .96); }
.search-form { display: flex; gap: 12px; max-width: 720px; margin: auto; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: rgba(255, 255, 255, .06); color: #fff; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; margin-left: auto; border: 0; background: transparent; cursor: pointer; }
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: #fff; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(540px, 28vw, 640px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: #060b23;
  background-image: radial-gradient(circle at center, rgba(4, 8, 27, .3), rgba(3, 7, 23, .02) 45%, rgba(3, 7, 23, .16) 100%), url('../images/lumina-cosmic-hero-v4.webp'), linear-gradient(90deg, #05091f 0%, #091333 18%, #091333 82%, #05091f 100%);
  background-size: auto, cover, 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::after { position: absolute; inset: auto 0 0; height: 115px; content: ""; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero-stars { position: absolute; inset: 0; opacity: .58; background: radial-gradient(circle at 16% 22%, rgba(255,255,255,.72) 0 1px, transparent 2px), radial-gradient(circle at 32% 66%, rgba(179,149,255,.76) 0 1px, transparent 2px), radial-gradient(circle at 73% 20%, rgba(255,255,255,.76) 0 1px, transparent 2px); background-size: 210px 190px, 260px 230px, 310px 270px; animation: star-drift 24s linear infinite, star-bed-pulse 5.5s ease-in-out infinite alternate; }
.hero-stars::before, .hero-stars::after { position: absolute; inset: -18px; content: ""; pointer-events: none; background-repeat: repeat; mix-blend-mode: screen; }
.hero-stars::before { opacity: .22; background-image: radial-gradient(circle, rgba(255,255,255,.98) 0 1.4px, rgba(188,205,255,.48) 1.6px, transparent 3px), radial-gradient(circle, rgba(211,185,255,.95) 0 1px, transparent 2.5px), radial-gradient(circle, rgba(255,255,255,.82) 0 .8px, transparent 2px); background-size: 227px 191px, 311px 263px, 173px 239px; background-position: 37px 24px, 118px 73px, 11px 142px; animation: star-twinkle-a 2.7s ease-in-out infinite; }
.hero-stars::after { opacity: .18; background-image: radial-gradient(circle, rgba(255,255,255,1) 0 1.8px, rgba(147,178,255,.42) 2px, transparent 4px), radial-gradient(circle, rgba(203,162,255,.95) 0 1.2px, transparent 3px); background-size: 389px 307px, 271px 353px; background-position: 71px 41px, 193px 128px; animation: star-twinkle-b 4.1s ease-in-out -1.3s infinite; }
@keyframes star-drift { to { transform: translate3d(30px, -18px, 0); } }
@keyframes star-bed-pulse { from { opacity: .46; } to { opacity: .66; } }
@keyframes star-twinkle-a { 0%, 100% { opacity: .12; filter: brightness(.8); } 34% { opacity: .72; filter: brightness(1.7); } 63% { opacity: .24; filter: brightness(1); } 82% { opacity: .56; filter: brightness(1.45); } }
@keyframes star-twinkle-b { 0%, 100% { opacity: .08; filter: brightness(.75); } 27% { opacity: .38; filter: brightness(1.25); } 58% { opacity: .82; filter: brightness(1.9); } 76% { opacity: .18; filter: brightness(.9); } }
.hero-inner { position: relative; z-index: 2; padding-block: 62px 80px; }
.hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
.hero h1 { max-width: 720px; margin: 0 auto; font-size: clamp(2.5rem, 4.2vw, 4.15rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 span { background: linear-gradient(90deg, #fff, #c8b2ff 60%, #78b5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { max-width: 570px; margin: 18px auto 24px; color: #cbd3e9; font-size: clamp(.94rem, 1.2vw, 1.08rem); }
.birth-form { display: flex; max-width: 620px; padding: 6px; margin-inline: auto; border: 1px solid rgba(193, 186, 255, .58); border-radius: 13px; background: rgba(244, 245, 255, .97); box-shadow: 0 14px 45px rgba(31, 21, 90, .42), 0 0 0 4px rgba(109, 81, 255, .08); }
.date-field { position: relative; display: flex; flex: 1; align-items: center; min-width: 0; }
.date-field span { margin-left: 13px; color: #6e5acd; }
.date-field input { width: 100%; min-height: 44px; padding: 0 15px 0 10px; border: 0; outline: 0; background: transparent; color: #34344b; font-weight: 650; }
.birth-form .button { min-width: 216px; min-height: 44px; border-radius: 9px; }
.form-error { max-width: 620px; padding: 9px 12px; margin: 12px auto 0; border: 1px solid rgba(255, 104, 151, .38); border-radius: 9px; background: rgba(146, 25, 71, .25); color: #ffd8e5; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; padding: 0; margin: 17px 0 0; color: #b9c1d8; font-size: .79rem; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust span { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid rgba(170,145,255,.55); border-radius: 50%; color: #c9baff; }

/* Calculator results */
.calculator-result { position: relative; z-index: 5; padding: 0 0 30px; opacity: 0; transform: translateY(18px); transition: opacity .25s, transform .25s; }
.calculator-result.is-visible { opacity: 1; transform: none; }
.result-panel { position: relative; padding: 34px; margin-top: -42px; border: 1px solid var(--line-bright); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 25, 61, .98), rgba(9, 15, 40, .98)); box-shadow: var(--shadow), 0 0 60px rgba(104, 75, 255, .16); }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.result-heading h2 { margin: 0 0 25px; font-size: 1.8rem; }
.result-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.05); cursor: pointer; }
.result-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.result-item { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.result-item.featured { background: linear-gradient(145deg, rgba(120, 71, 255, .17), rgba(48, 97, 194, .12)); border-color: rgba(151, 120, 255, .5); }
.result-label { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.result-item strong { display: block; margin: 10px 0 4px; color: #d4c6ff; font-size: 3rem; line-height: 1; white-space: nowrap; text-shadow: 0 0 28px rgba(151, 102, 255, .55); }
.result-formula { display: block; min-height: 2.6em; margin-top: 9px; color: #9ba8cc; font-size: .7rem; line-height: 1.3; }
.result-item h3 { margin: 9px 0 6px; font-size: 1.05rem; }
.result-item p { margin: 0; color: var(--muted); font-size: .88rem; }
.result-note { margin: 18px 0 0; color: #7f8aa9; font-size: .75rem; text-align: center; }

/* Sections */
.section-heading { margin-bottom: 24px; }
.section-heading h2, .number-copy h2, .row-heading > h2 { margin: 0; font-size: clamp(1.65rem, 2.5vw, 2.2rem); line-height: 1.12; letter-spacing: -.03em; }
.section-heading p { max-width: 650px; margin: 12px auto 0; color: var(--muted); }
.section-heading.centered { text-align: center; }
.row-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.text-link { color: #c9bdff; font-size: .87rem; font-weight: 700; white-space: nowrap; }
.text-link span { display: inline-block; margin-left: 6px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }

.directions-section { padding: 38px 0 58px; }
.directions-section .container { max-width: 1015px; }
.direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.direction-card { --icon-color: #d7c0ff; --icon-glow: 173, 117, 255; --icon-glow-strong: 220, 176, 255; position: relative; min-height: 174px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 21px 18px; overflow: hidden; border: 1px solid rgba(96, 139, 244, .42); border-radius: 12px; background: linear-gradient(145deg, rgba(17, 35, 79, .92), rgba(10, 18, 47, .92)); text-align: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 12px 35px rgba(0, 0, 0, .14); transition: transform .25s, border-color .25s, box-shadow .25s; }
.direction-card:nth-child(1) { --icon-color: #d8c1ff; --icon-glow: 173, 117, 255; --icon-glow-strong: 221, 181, 255; background: linear-gradient(145deg, rgba(30, 41, 96, .94), rgba(16, 22, 61, .94)); }
.direction-card:nth-child(2) { --icon-color: #b9dcff; --icon-glow: 82, 166, 255; --icon-glow-strong: 174, 220, 255; background: linear-gradient(145deg, rgba(18, 51, 99, .9), rgba(20, 19, 66, .94)); }
.direction-card:nth-child(3) { --icon-color: #edbaff; --icon-glow: 207, 103, 255; --icon-glow-strong: 241, 181, 255; background: linear-gradient(145deg, rgba(43, 27, 88, .93), rgba(13, 25, 61, .94)); }
.direction-card:nth-child(4) { --icon-color: #ffc0df; --icon-glow: 255, 101, 184; --icon-glow-strong: 255, 190, 222; background: linear-gradient(145deg, rgba(30, 41, 96, .94), rgba(16, 22, 61, .94)); }
.direction-card:nth-child(5) { --icon-color: #c7b9ff; --icon-glow: 135, 106, 255; --icon-glow-strong: 204, 188, 255; background: linear-gradient(145deg, rgba(18, 51, 99, .9), rgba(20, 19, 66, .94)); }
.direction-card:nth-child(6) { --icon-color: #c4ccff; --icon-glow: 102, 130, 255; --icon-glow-strong: 190, 202, 255; background: linear-gradient(145deg, rgba(43, 27, 88, .93), rgba(13, 25, 61, .94)); }
.direction-card:nth-child(7) { --icon-color: #cbdcff; --icon-glow: 113, 150, 255; --icon-glow-strong: 197, 220, 255; background: linear-gradient(145deg, rgba(30, 41, 96, .94), rgba(16, 22, 61, .94)); }
.direction-card:nth-child(8) { --icon-color: #b9ebff; --icon-glow: 74, 191, 255; --icon-glow-strong: 177, 235, 255; background: linear-gradient(145deg, rgba(18, 51, 99, .9), rgba(20, 19, 66, .94)); }
.direction-card:nth-child(9) { --icon-color: #dfbaff; --icon-glow: 191, 96, 255; --icon-glow-strong: 227, 181, 255; background: linear-gradient(145deg, rgba(43, 27, 88, .93), rgba(13, 25, 61, .94)); }
.direction-card::before { position: absolute; width: 190px; height: 190px; top: -95px; left: 50%; transform: translateX(-50%); content: ""; border-radius: 50%; background: rgba(var(--icon-glow), .22); filter: blur(34px); opacity: .48; transition: opacity .25s; }
.direction-card:hover { transform: translateY(-5px); border-color: rgba(var(--icon-glow), .72); box-shadow: 0 18px 45px rgba(0, 0, 0, .25), 0 0 38px rgba(var(--icon-glow), .2); }
.direction-card:hover::before { opacity: .85; }
.direction-icon { position: relative; width: 90px; height: 100px; display: grid; place-items: center; margin-bottom: 7px; color: var(--icon-color); filter: drop-shadow(0 0 12px rgba(var(--icon-glow), .95)) drop-shadow(0 0 26px rgba(var(--icon-glow), .58)); transform-origin: center; transition: transform .32s ease, filter .32s ease; will-change: transform, filter; }
.direction-icon::before { position: absolute; inset: 7px 4px; content: ""; border-radius: 50%; background: radial-gradient(circle, rgba(var(--icon-glow-strong), .2), rgba(var(--icon-glow), .08) 48%, transparent 72%); box-shadow: 0 0 30px rgba(var(--icon-glow), .22); opacity: .85; transition: transform .32s ease, opacity .32s ease; }
.direction-icon svg { position: relative; z-index: 1; width: 86px; height: 94px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; transition: opacity .32s ease; }
.direction-icon .icon-soft { fill: currentColor; fill-opacity: .08; }
.direction-icon .icon-dot { fill: currentColor; fill-opacity: .9; stroke: none; }
.direction-card:hover .direction-icon { transform: translateY(-4px) scale(1.06); animation: direction-icon-glow 1.65s ease-in-out infinite; }
.direction-card:hover .direction-icon::before { animation: direction-halo-pulse 1.65s ease-in-out infinite; }
.direction-card:hover .direction-icon svg { animation: direction-stroke-pulse 1.65s ease-in-out infinite; }
@keyframes direction-icon-glow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(var(--icon-glow), .9)) drop-shadow(0 0 25px rgba(var(--icon-glow), .58)); }
  50% { filter: drop-shadow(0 0 18px rgba(var(--icon-glow-strong), 1)) drop-shadow(0 0 40px rgba(var(--icon-glow), .92)); }
}
@keyframes direction-halo-pulse {
  0%, 100% { opacity: .7; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes direction-stroke-pulse {
  0%, 100% { opacity: .86; }
  50% { opacity: 1; }
}
.direction-card strong { position: relative; font-size: 1.05rem; }
.direction-card small { position: relative; margin-top: 3px; color: #adb7d6; font-size: .78rem; }
.card-arrow { position: absolute; right: 13px; top: 10px; color: transparent; transition: color .2s, transform .2s; }
.direction-card:hover .card-arrow { color: var(--icon-color); transform: translate(2px, -2px); }

.tools-section { padding: 52px 0; background: linear-gradient(to bottom, transparent, rgba(11, 18, 45, .5), transparent); }
.tools-section .container, .latest-section .container { max-width: 1100px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool-card { min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid rgba(132, 105, 244, .34); border-radius: 12px; background: #0d1637; transition: transform .25s, border-color .25s; }
.tool-card:hover { transform: translateY(-5px); border-color: rgba(145, 118, 255, .65); }
.tool-card strong { display: block; font-size: .98rem; }
.tool-card small { color: var(--muted); font-size: .74rem; }
.tool-art { position: relative; aspect-ratio: 4 / 3; display: block; min-height: 0; overflow: hidden; border-radius: 0; background: #10183b; }
.tool-art::before, .tool-art::after { display: none; }
.tool-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tool-card:hover .tool-art img { transform: scale(1.045); }
.tool-caption { display: block; padding: 12px 14px 14px; }
.tool-tarot .tool-art i { position: absolute; width: 62px; height: 100px; display: grid; place-items: center; border: 1px solid rgba(199, 180, 255, .65); border-radius: 8px; background: linear-gradient(145deg, #281f65, #10173a); font-size: 1.6rem; }
.tool-tarot .tool-art i:first-child { transform: translateX(-30px) rotate(-10deg); }
.tool-tarot .tool-art i:nth-child(2) { transform: translateX(30px) rotate(10deg); }
.tool-tarot .tool-art i:nth-child(3) { z-index: 3; }
.tool-orb .tool-art i { width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle at 42% 36%, #e6d8ff, #9a62ff 14%, #381c87 50%, #121537 72%); box-shadow: 0 0 48px rgba(164, 100, 255, .62); }
.tool-love .tool-art { background: radial-gradient(circle at 40% 50%, rgba(214,69,196,.44), transparent 35%), radial-gradient(circle at 65% 50%, rgba(77,100,255,.4), transparent 38%); }
.tool-love .tool-art i { color: #ef86ff; font-size: 5rem; }
.tool-year .tool-art i { font-size: 5rem; }

.number-section { padding: 0; }
.number-section .container { width: 100%; max-width: none; }
.number-panel { position: relative; min-height: 390px; display: grid; grid-template-columns: 1fr; align-items: center; overflow: hidden; border-block: 1px solid var(--line); border-inline: 0; border-radius: 0; background-image: linear-gradient(90deg, rgba(5, 8, 24, .36), rgba(5, 8, 24, .38) 50%, rgba(5, 8, 24, .14)), url('../images/number-day-bg-v3.webp'); background-size: auto, cover; background-position: center, center 48%; background-repeat: no-repeat; box-shadow: var(--shadow); }
.number-panel::before { position: absolute; inset: 0; content: ""; background: linear-gradient(to bottom, rgba(5, 8, 24, .08), rgba(5, 8, 24, .35)); }
.number-copy { position: relative; z-index: 2; width: min(100% - 40px, 560px); max-width: 560px; padding: 52px 30px; margin-inline: auto; text-align: center; }
.daily-number { display: block; margin: 8px 0 2px; font-size: 5rem; line-height: 1; font-weight: 300; color: #e1d7ff; text-shadow: 0 0 40px rgba(144, 94, 255, .75); }
.number-copy h3 { margin: 0; font-size: 1.2rem; }
.number-copy p { margin: 5px 0 25px; color: var(--muted); }
.number-orbit { position: relative; z-index: 2; width: 290px; height: 290px; display: grid; place-items: center; margin: auto; border: 1px solid rgba(174, 146, 255, .3); border-radius: 50%; box-shadow: 0 0 80px rgba(106, 71, 235, .18), inset 0 0 70px rgba(119, 79, 244, .1); }
.number-orbit::before, .number-orbit::after { position: absolute; content: ""; border: 1px solid rgba(169, 144, 255, .25); border-radius: 50%; }
.number-orbit::before { inset: 34px; }
.number-orbit::after { inset: 70px; border-style: dashed; animation: spin 22s linear infinite; }
.number-orbit span { color: #d9ccff; font-size: 6rem; font-weight: 250; text-shadow: 0 0 35px rgba(149, 93, 255, .75); }
.number-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #d8c7ff; box-shadow: 0 0 15px #8f62ff; }
.number-orbit i:nth-of-type(1) { top: 22px; left: 89px; }
.number-orbit i:nth-of-type(2) { right: 12px; bottom: 94px; }
.number-orbit i:nth-of-type(3) { left: 27px; bottom: 57px; }
@keyframes spin { to { transform: rotate(360deg); } }

.angel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.angel-grid a { display: flex; flex-direction: column; align-items: center; padding: 26px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: linear-gradient(145deg, rgba(21, 30, 68, .78), rgba(10, 16, 41, .76)); transition: border-color .2s, transform .2s; }
.angel-grid a:hover { transform: translateY(-4px); border-color: rgba(157, 127, 255, .66); }
.angel-grid strong { color: #d8c9ff; font-size: 1.85rem; letter-spacing: .04em; text-shadow: 0 0 20px rgba(148, 94, 255, .5); }
.angel-grid span { color: var(--muted); font-size: .77rem; }

/* Articles */
.latest-section { padding: 48px 0 66px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: linear-gradient(145deg, rgba(16, 26, 60, .86), rgba(8, 14, 36, .9)); transition: transform .24s, border-color .24s; }
.article-card:hover { transform: translateY(-5px); border-color: rgba(145, 117, 255, .6); }
.article-image { min-height: 155px; display: block; overflow: hidden; background: radial-gradient(circle at 60% 30%, rgba(131, 71, 225, .5), transparent 30%), linear-gradient(135deg, #151d4c, #191039 60%, #08142d); }
.article-image img { width: 100%; height: 155px; object-fit: cover; transition: transform .5s; }
.article-card:hover .article-image img { transform: scale(1.04); }
.image-placeholder { min-height: 155px; display: grid; place-items: center; color: #d4c4ff; font-size: 3.2rem; text-shadow: 0 0 35px #8d5fff; }
.article-body { padding: 20px; }
.article-kicker, .article-kicker a { color: #aa91ff; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.article-body h2 { margin: 8px 0 10px; font-size: 1.08rem; line-height: 1.35; }
.article-body p { margin: 0 0 17px; color: var(--muted); font-size: .85rem; }
.article-body time { color: #7e89a8; font-size: .75rem; }
.latest-section .article-body p { display: none; }

.newsletter-section { padding: 55px 0 0; }
.newsletter-panel { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 50px 58px; border: 1px solid var(--line); border-radius: 26px 26px 0 0; background: radial-gradient(circle at 10% 100%, rgba(111, 66, 225, .25), transparent 32%), radial-gradient(circle at 90% 0%, rgba(53, 99, 212, .22), transparent 35%), #0b1230; }
.newsletter-panel h2 { margin: 0; font-size: 2rem; }
.newsletter-panel p { margin: 5px 0 0; color: var(--muted); }
.newsletter-form { display: flex; min-width: 430px; gap: 10px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: rgba(255,255,255,.07); color: #fff; }

/* Content templates */
.site-main.section { min-height: 65vh; }
.archive-header { max-width: 750px; margin: 0 0 45px; }
.archive-header h1, .entry-header h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.1; letter-spacing: -.045em; }
.archive-description, .archive-description p { color: var(--muted); }
.content-shell { max-width: 920px; }
.entry-card { padding: clamp(24px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11, 18, 43, .75); box-shadow: var(--shadow); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #8e98b5; font-size: .75rem; }
.breadcrumbs a { color: #b3a0ff; }
.entry-meta { display: flex; gap: 9px; margin-top: 16px; color: #8d97b4; font-size: .82rem; }
.entry-hero { overflow: hidden; margin: 35px 0; border-radius: 16px; }
.entry-content { color: #d9deec; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; color: #fff; line-height: 1.2; }
.entry-content h2 { font-size: 1.8rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content a { color: #bba8ff; text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { padding: 18px 24px; margin: 28px 0; border-left: 3px solid var(--violet); border-radius: 0 12px 12px 0; background: rgba(126, 84, 255, .09); color: #e7e1ff; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 25px 0; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: rgba(115, 80, 255, .16); }
.tag-list a { display: inline-flex; padding: 5px 11px; margin: 5px; border: 1px solid var(--line); border-radius: 999px; color: #c7baff; font-size: .75rem; }
.post-navigation { margin-top: 20px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.post-navigation a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.post-navigation span { display: block; color: var(--muted); font-size: .72rem; }
.nav-next { text-align: right; }
.pagination { margin-top: 35px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; }
.page-numbers.current { border-color: var(--violet); background: rgba(123, 81, 255, .22); }
.empty-state, .error-page { min-height: 60vh; display: grid; align-content: center; justify-items: center; padding: 70px 20px; text-align: center; }
.empty-state > span { color: #c5b6ff; font-size: 3rem; }
.error-code { color: rgba(185, 163, 255, .18); font-size: clamp(7rem, 20vw, 14rem); line-height: .8; font-weight: 900; }
.error-page h1 { margin: 35px 0 4px; font-size: 2.4rem; }
.error-page p { color: var(--muted); }

/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: #040713; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.5fr .9fr; gap: 50px; padding-block: 55px 38px; }
.footer-brand p { max-width: 320px; color: var(--muted); font-size: .83rem; }
.footer-nav ul { flex-wrap: wrap; align-items: flex-start; }
.footer-nav a, .footer-links a { color: #b5bdd4; font-size: .81rem; }
.footer-nav a:hover, .footer-links a:hover { color: #d4c8ff; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 19px; border-top: 1px solid rgba(135, 150, 198, .12); color: #76809c; font-size: .72rem; }
.footer-bottom p { margin: 0; }
.disclaimer { max-width: 680px; text-align: right; }

@media (max-width: 1020px) {
  .primary-nav { position: fixed; inset: 76px 0 auto; display: none; padding: 24px 20px; border-bottom: 1px solid var(--line); background: rgba(5, 8, 23, .98); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; width: min(100%, var(--container)); margin: auto; }
  .menu-toggle { display: block; }
  .direction-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 2; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }
  .site-header { height: 68px; }
  .primary-nav { inset-block-start: 68px; }
  .header-actions .button { display: none; }
  .brand small { display: none; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .hero { min-height: 590px; background-image: linear-gradient(to bottom, rgba(3,7,23,.35), rgba(3,7,23,.58) 55%, #050817 100%), url('../images/lumina-cosmic-hero-v2.webp'); background-size: auto, cover; background-position: center; }
  .hero-inner { padding-block: 58px 78px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .hero-copy > p { margin-inline: auto; }
  .birth-form { flex-direction: column; padding: 8px; }
  .date-field { min-height: 50px; }
  .birth-form .button { width: 100%; min-width: 0; }
  .hero-trust { justify-content: center; gap: 12px 17px; }
  .result-panel { padding: 24px 18px; }
  .result-grid { grid-template-columns: 1fr; }
  .direction-grid { grid-template-columns: repeat(2, 1fr); }
  .direction-card { min-height: 150px; padding: 17px 10px; }
  .direction-icon { width: 64px; height: 70px; }
  .direction-icon svg { width: 60px; height: 66px; }
  .row-heading { align-items: flex-end; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-card { min-height: 0; padding: 0; }
  .tool-art { min-height: 0; }
  .number-panel { min-height: 355px; grid-template-columns: 1fr; text-align: center; background-image: linear-gradient(to bottom, rgba(5,8,24,.28), rgba(5,8,24,.42)), url('../images/number-day-bg.webp'); background-size: auto, cover; background-position: center, 62% center; }
  .number-copy { max-width: 480px; padding: 45px 24px; }
  .number-orbit { width: 230px; height: 230px; margin-bottom: 42px; }
  .angel-grid { grid-template-columns: repeat(2, 1fr); }
  .angel-grid a:last-child { grid-column: 1 / -1; }
  .article-grid { grid-template-columns: 1fr; }
  .newsletter-panel { flex-direction: column; align-items: stretch; padding: 35px 24px; }
  .newsletter-form { min-width: 0; }
  .entry-card { border-radius: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .disclaimer { text-align: left; }
}

@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .search-toggle { display: none; }
  .direction-grid { gap: 10px; }
  .direction-card strong { font-size: .9rem; }
  .direction-card small { font-size: .7rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 0; }
  .angel-grid strong { font-size: 1.5rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-height: 48px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
}

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