/* ==========================================================================
   Cards & Candle — effects
   Palette: Amethyst #9B5DE5 · Lavender glow #C8A2FF · Cosmic teal #2EC4B6
   ========================================================================== */

:root {
	--cc-amethyst: #9B5DE5;
	--cc-lavender: #C8A2FF;
	--cc-teal: #2EC4B6;
	--cc-night: #05030a;
}

/* ---------- Hero ---------- */

.cc-hero {
	position: relative;
	min-height: var(--cc-hero-h, 100vh);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: radial-gradient(ellipse at 50% 120%, #1a0d2e 0%, var(--cc-night) 60%);
	isolation: isolate;
	--mx: 0;
	--my: 0;
}

.cc-stars {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* Nebula: three soft color clouds drifting slowly. */
.cc-nebula {
	position: absolute;
	inset: -15%;
	z-index: 0;
	transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -12px), 0);
	transition: transform .6s ease-out;
}
.cc-nebula span {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .55;
	will-change: transform;
}
.cc-n1 {
	width: 55%; height: 55%; left: 8%; top: 12%;
	background: radial-gradient(circle, rgba(155, 93, 229, .55) 0%, rgba(155, 93, 229, 0) 70%);
	animation: cc-drift-a 38s ease-in-out infinite alternate;
}
.cc-n2 {
	width: 50%; height: 50%; right: 6%; top: 30%;
	background: radial-gradient(circle, rgba(46, 196, 182, .38) 0%, rgba(46, 196, 182, 0) 70%);
	animation: cc-drift-b 46s ease-in-out infinite alternate;
}
.cc-n3 {
	width: 40%; height: 40%; left: 35%; bottom: 0;
	background: radial-gradient(circle, rgba(200, 162, 255, .3) 0%, rgba(200, 162, 255, 0) 70%);
	animation: cc-drift-a 52s ease-in-out infinite alternate-reverse;
}
@keyframes cc-drift-a {
	from { transform: translate(0, 0) scale(1); }
	to   { transform: translate(6%, 4%) scale(1.15); }
}
@keyframes cc-drift-b {
	from { transform: translate(0, 0) scale(1.1); }
	to   { transform: translate(-7%, -5%) scale(.95); }
}

/* Zodiac wheel behind the headline. */
.cc-wheel {
	position: absolute;
	z-index: 2;
	width: min(92vmin, 760px);
	aspect-ratio: 1;
	left: 50%;
	top: 50%;
	transform: translate(calc(-50% + var(--mx) * 10px), calc(-50% + var(--my) * 10px));
	transition: transform .6s ease-out;
	opacity: .32;
	pointer-events: none;
}
.cc-wheel svg {
	width: 100%;
	height: 100%;
	animation: cc-spin 240s linear infinite;
	filter: drop-shadow(0 0 6px rgba(46, 196, 182, .45));
}
.cc-w-ring  { fill: none; stroke: var(--cc-teal); stroke-width: 1.2; }
.cc-w-thin  { stroke-width: .7; stroke: var(--cc-lavender); }
.cc-w-dash  { stroke-dasharray: 2 6; stroke: var(--cc-lavender); }
.cc-w-tick  { stroke: var(--cc-teal); stroke-width: .8; }
.cc-w-deg   { stroke: var(--cc-teal); stroke-width: .6; }
.cc-w-glyph {
	fill: var(--cc-lavender);
	font-size: 26px;
	font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif;
}
@keyframes cc-spin { to { transform: rotate(360deg); } }

/* Headline block. */
.cc-hero-inner {
	position: relative;
	z-index: 3;
	text-align: center;
	padding: 0 24px;
	max-width: 900px;
}
.cc-eyebrow {
	margin: 0 0 18px;
	font-size: 13px;
	letter-spacing: .35em;
	text-transform: uppercase;
	color: var(--cc-teal);
	opacity: 0;
	animation: cc-rise 1s .2s ease-out forwards;
}
.cc-hero-title {
	margin: 0 0 20px;
	font-size: clamp(40px, 7vw, 88px);
	line-height: 1.05;
	color: #fff;
	background: linear-gradient(100deg, #fff 0%, var(--cc-lavender) 40%, var(--cc-amethyst) 60%, var(--cc-teal) 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 0 24px rgba(155, 93, 229, .35));
	opacity: 0;
	animation: cc-rise 1.1s .45s ease-out forwards, cc-shimmer 9s 1.6s linear infinite;
}
.cc-hero-sub {
	margin: 0 auto 34px;
	max-width: 620px;
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.6;
	color: rgba(255, 255, 255, .78);
	opacity: 0;
	animation: cc-rise 1s .75s ease-out forwards;
}
.cc-hero-btns {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	opacity: 0;
	animation: cc-rise 1s 1s ease-out forwards;
}
@keyframes cc-rise {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes cc-shimmer {
	to { background-position: -200% center; }
}

/* Buttons. */
.cc-btn {
	display: inline-block;
	padding: 15px 34px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 1px solid var(--cc-amethyst);
	transition: background .3s, color .3s, box-shadow .3s, transform .3s, border-color .3s;
}
.cc-btn-primary {
	background: var(--cc-amethyst);
	color: #fff !important;
	box-shadow: 0 0 24px rgba(155, 93, 229, .45);
}
.cc-btn-primary:hover {
	background: var(--cc-lavender);
	border-color: var(--cc-lavender);
	color: #1a0d2e !important;
	box-shadow: 0 0 36px rgba(200, 162, 255, .65);
	transform: translateY(-2px);
}
.cc-btn-ghost {
	background: transparent;
	color: #fff !important;
	border-color: var(--cc-teal);
}
.cc-btn-ghost:hover {
	background: rgba(46, 196, 182, .12);
	box-shadow: 0 0 28px rgba(46, 196, 182, .45);
	transform: translateY(-2px);
}

/* Scroll hint. */
.cc-scroll-hint {
	position: absolute;
	z-index: 3;
	bottom: 28px;
	left: 50%;
	width: 24px;
	height: 40px;
	margin-left: -12px;
	border: 1px solid rgba(200, 162, 255, .5);
	border-radius: 12px;
}
.cc-scroll-hint span {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--cc-teal);
	animation: cc-scroll 2s ease-in-out infinite;
}
@keyframes cc-scroll {
	0%   { opacity: 0; transform: translateY(0); }
	30%  { opacity: 1; }
	100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Candle ---------- */

.cc-candle-wrap {
	--cc-s: 1;
	position: relative;
	width: calc(160px * var(--cc-s));
	height: calc(320px * var(--cc-s));
	margin: 0 auto;
	/* Violet flame (default). */
	--f-outer: rgba(155, 93, 229, .85);
	--f-inner: rgba(46, 196, 182, .9);
	--f-core: #f4f0ff;
	--f-glow: rgba(155, 93, 229, .45);
	--f-glow2: rgba(46, 196, 182, .18);
}
.cc-flame-natural {
	--f-outer: rgba(255, 140, 40, .85);
	--f-inner: rgba(255, 200, 80, .95);
	--f-core: #fffbe8;
	--f-glow: rgba(255, 150, 50, .4);
	--f-glow2: rgba(255, 200, 120, .15);
}

.cc-candle-glow {
	position: absolute;
	left: 50%;
	top: calc(70px * var(--cc-s));
	width: calc(360px * var(--cc-s));
	height: calc(360px * var(--cc-s));
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle, var(--f-glow) 0%, var(--f-glow2) 35%, transparent 70%);
	animation: cc-glow 3.7s ease-in-out infinite;
	pointer-events: none;
}
@keyframes cc-glow {
	0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); }
	23%      { opacity: .7;  transform: translate(-50%, -50%) scale(.96); }
	47%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
	71%      { opacity: .78; transform: translate(-50%, -50%) scale(.98); }
}

.cc-candle {
	position: absolute;
	inset: 0;
}

/* Flame. */
.cc-flame {
	position: absolute;
	left: 50%;
	top: calc(24px * var(--cc-s));
	width: calc(34px * var(--cc-s));
	height: calc(84px * var(--cc-s));
	margin-left: calc(-17px * var(--cc-s));
	transform-origin: 50% 100%;
	animation: cc-flicker 2.3s ease-in-out infinite;
}
.cc-flame > div {
	position: absolute;
	left: 50%;
	bottom: 0;
	border-radius: 50% 50% 35% 35% / 65% 65% 35% 35%;
	transform: translateX(-50%);
}
.cc-flame-outer {
	width: 100%;
	height: 100%;
	background: radial-gradient(ellipse at 50% 80%, var(--f-inner) 0%, var(--f-outer) 45%, transparent 75%);
	filter: blur(1.5px);
	box-shadow: 0 0 calc(30px * var(--cc-s)) var(--f-outer);
}
.cc-flame-inner {
	width: 58%;
	height: 62%;
	background: radial-gradient(ellipse at 50% 85%, var(--f-core) 0%, var(--f-inner) 55%, transparent 85%);
	filter: blur(1px);
	animation: cc-flicker-inner 1.7s ease-in-out infinite;
}
.cc-flame-core {
	width: 26%;
	height: 26%;
	bottom: 4% !important;
	background: rgba(40, 20, 80, .7);
	filter: blur(1.5px);
}
@keyframes cc-flicker {
	0%, 100% { transform: scale(1, 1) skewX(0deg); }
	15%      { transform: scale(.96, 1.05) skewX(1.5deg); }
	32%      { transform: scale(1.03, .95) skewX(-1deg); }
	51%      { transform: scale(.98, 1.08) skewX(2deg); }
	68%      { transform: scale(1.02, .97) skewX(-2deg); }
	84%      { transform: scale(.97, 1.03) skewX(.5deg); }
}
@keyframes cc-flicker-inner {
	0%, 100% { opacity: 1;   transform: translateX(-50%) scaleY(1); }
	40%      { opacity: .85; transform: translateX(-48%) scaleY(1.08); }
	70%      { opacity: .95; transform: translateX(-52%) scaleY(.94); }
}

/* Wick. */
.cc-wick {
	position: absolute;
	left: 50%;
	top: calc(100px * var(--cc-s));
	width: calc(4px * var(--cc-s));
	height: calc(16px * var(--cc-s));
	margin-left: calc(-2px * var(--cc-s));
	background: linear-gradient(#111, #3a2a2a);
	border-radius: 2px 2px 0 0;
}

/* Wax body. */
.cc-wax {
	position: absolute;
	left: 50%;
	top: calc(112px * var(--cc-s));
	width: calc(76px * var(--cc-s));
	height: calc(176px * var(--cc-s));
	margin-left: calc(-38px * var(--cc-s));
	border-radius: calc(10px * var(--cc-s)) calc(10px * var(--cc-s)) 4px 4px;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(200, 162, 255, .55) 0%, transparent 45%),
		linear-gradient(90deg, #24123a 0%, #4a2a75 30%, #5c3590 50%, #3c1e5a 75%, #1f0f33 100%);
	box-shadow: inset 0 calc(6px * var(--cc-s)) calc(10px * var(--cc-s)) rgba(200, 162, 255, .25);
}
.cc-drip {
	position: absolute;
	top: 0;
	width: calc(10px * var(--cc-s));
	border-radius: 0 0 calc(6px * var(--cc-s)) calc(6px * var(--cc-s));
	background: linear-gradient(90deg, #4a2a75, #6a40a3, #4a2a75);
}
.cc-d1 { left: 14%; height: calc(34px * var(--cc-s)); }
.cc-d2 { left: 58%; height: calc(52px * var(--cc-s)); width: calc(12px * var(--cc-s)); }
.cc-d3 { left: 80%; height: calc(22px * var(--cc-s)); width: calc(8px * var(--cc-s)); }

/* Holder dish. */
.cc-holder {
	position: absolute;
	left: 50%;
	top: calc(284px * var(--cc-s));
	width: calc(140px * var(--cc-s));
	height: calc(22px * var(--cc-s));
	margin-left: calc(-70px * var(--cc-s));
	border-radius: 50%;
	background: linear-gradient(#2a2a35, #0d0d12);
	box-shadow: 0 calc(-2px * var(--cc-s)) 0 rgba(200, 162, 255, .35) inset, 0 calc(10px * var(--cc-s)) calc(24px * var(--cc-s)) rgba(0, 0, 0, .8);
}

/* ---------- Accessibility: respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
	.cc-nebula span,
	.cc-wheel svg,
	.cc-scroll-hint span,
	.cc-flame,
	.cc-flame-inner,
	.cc-candle-glow {
		animation: none !important;
	}
	.cc-eyebrow,
	.cc-hero-title,
	.cc-hero-sub,
	.cc-hero-btns {
		animation: none !important;
		opacity: 1 !important;
	}
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	.cc-hero { min-height: min(var(--cc-hero-h, 100vh), 720px); padding: 80px 0; }
	.cc-wheel { width: 120vmin; opacity: .22; }
	.cc-eyebrow { font-size: 11px; letter-spacing: .25em; }
	.cc-btn { padding: 13px 24px; font-size: 12px; }
	.cc-scroll-hint { display: none; }
}

/* ---------- Zodiac grid ---------- */

.cc-zodiac {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
	max-width: 1100px;
	margin: 0 auto;
}
.cc-z-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 22px 8px 18px;
	background: #000;
	border: 1px solid #2a2a35;
	text-decoration: none !important;
	transition: border-color .4s, box-shadow .4s, transform .4s;
	overflow: hidden;
}
.cc-z-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 38%, rgba(46, 196, 182, .16), transparent 65%);
	opacity: 0;
	transition: opacity .5s;
}
.cc-z-art {
	position: relative;
	width: 100%;
	max-width: 120px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
}
.cc-z-glyph {
	position: relative;
	z-index: 2;
	font-size: clamp(38px, 4vw, 52px);
	line-height: 1;
	color: var(--cc-teal);
	font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif;
	text-shadow: 0 0 14px rgba(46, 196, 182, .55);
	transition: opacity .5s, transform .5s, color .5s;
}
.cc-z-const {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: visible;
}
.cc-z-const line {
	stroke: var(--cc-teal);
	stroke-width: 1.2;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	opacity: .9;
	transition: stroke-dashoffset .45s ease-out;
	transition-delay: calc(var(--i) * 90ms);
}
.cc-z-const circle {
	fill: #fff;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	transform: scale(.2);
	filter: drop-shadow(0 0 3px rgba(200, 162, 255, .9));
	transition: opacity .35s, transform .35s;
	transition-delay: calc(var(--i) * 70ms);
}
.cc-z-name {
	position: relative;
	margin-top: 10px;
	font-size: 17px;
	color: var(--cc-amethyst);
	transition: color .4s;
}
.cc-z-dates {
	position: relative;
	margin-top: 2px;
	font-size: 11px;
	letter-spacing: .08em;
	color: rgba(255, 255, 255, .55);
}

/* Hover / keyboard focus: constellation draws, glyph steps back. */
.cc-z-card:hover,
.cc-z-card:focus-visible {
	border-color: var(--cc-teal);
	box-shadow: 0 0 26px rgba(46, 196, 182, .28), inset 0 0 20px rgba(155, 93, 229, .12);
	transform: translateY(-3px);
}
.cc-z-card:hover::before,
.cc-z-card:focus-visible::before { opacity: 1; }
.cc-z-card:hover .cc-z-glyph,
.cc-z-card:focus-visible .cc-z-glyph {
	opacity: .14;
	transform: scale(1.25);
}
.cc-z-card:hover .cc-z-const line,
.cc-z-card:focus-visible .cc-z-const line { stroke-dashoffset: 0; }
.cc-z-card:hover .cc-z-const circle,
.cc-z-card:focus-visible .cc-z-const circle { opacity: 1; transform: scale(1); }
.cc-z-card:hover .cc-z-name,
.cc-z-card:focus-visible .cc-z-name { color: var(--cc-lavender); }

/* Current season. */
.cc-z-now {
	border-color: rgba(155, 93, 229, .8);
	box-shadow: 0 0 22px rgba(155, 93, 229, .35);
}
.cc-z-now .cc-z-glyph {
	animation: cc-z-pulse 3.2s ease-in-out infinite;
}
@keyframes cc-z-pulse {
	0%, 100% { text-shadow: 0 0 14px rgba(46, 196, 182, .55); }
	50%      { text-shadow: 0 0 26px rgba(46, 196, 182, .95), 0 0 40px rgba(155, 93, 229, .5); }
}
.cc-z-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 2px 7px;
	font-size: 9px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
	background: var(--cc-amethyst);
}

/* Touch screens (no hover): show constellations faintly all the time. */
@media (hover: none) {
	.cc-z-const line { stroke-dashoffset: 0; opacity: .3; transition: none; }
	.cc-z-const circle { opacity: .6; transform: scale(1); transition: none; }
}

@media (max-width: 1024px) {
	.cc-zodiac { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
	.cc-zodiac { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.cc-z-name { font-size: 15px; }
	.cc-z-dates { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.cc-z-card, .cc-z-glyph, .cc-z-const line, .cc-z-const circle { transition: none !important; }
	.cc-z-now .cc-z-glyph { animation: none; }
}
