@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
	--bg: #0a1414;
	--bg-elevated: #0f1c1c;
	--bg-card: rgba(255, 255, 255, 0.04);
	--border: rgba(255, 255, 255, 0.08);
	--text: rgba(255, 255, 255, 0.92);
	--text-muted: rgba(255, 255, 255, 0.45);
	--text-faint: rgba(255, 255, 255, 0.28);
	--coral: #e8836b;
	--coral-dim: rgba(232, 131, 107, 0.15);
	--teal: #2d6a6a;
	--teal-dim: rgba(45, 106, 106, 0.2);
	--gold: #eabe63;
	--mint: #9bd8cb;
	--sidebar-w: 72px;
	--font-display: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'DM Sans', system-ui, sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
	min-height: 100vh;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--coral);
	text-decoration: none;
	transition: color 0.2s var(--ease);
}
a:hover { color: var(--mint); }

img { max-width: 100%; display: block; }

/* ── Vertical brand rail ── */
.brand-rail {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	width: var(--sidebar-w);
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 28px 0;
	border-right: 1px solid var(--border);
	background: rgba(10, 20, 20, 0.85);
	backdrop-filter: blur(12px);
}

.rail-mark {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--text);
	white-space: nowrap;
}

.rail-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--coral);
	box-shadow: 0 0 20px rgba(232, 131, 107, 0.6);
	animation: pulse 3s ease-in-out infinite;
}

.rail-nav {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
}

.rail-nav a {
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-faint);
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	transition: color 0.25s;
}
.rail-nav a:hover, .rail-nav a.active { color: var(--coral); }

@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(0.85); }
}

/* ── Main shell ── */
.shell {
	margin-left: var(--sidebar-w);
	min-height: 100vh;
}

/* ── Top bar (mobile) ── */
.topbar {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 200;
	padding: 16px 24px;
	background: rgba(10, 20, 20, 0.92);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
	align-items: center;
	justify-content: space-between;
}

.topbar-logo {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.menu-btn {
	background: none;
	border: none;
	color: var(--text);
	cursor: pointer;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.menu-btn span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--text);
	transition: transform 0.3s var(--ease);
}

.mobile-drawer {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 150;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}
.mobile-drawer.open {
	opacity: 1;
	pointer-events: auto;
}
.mobile-panel {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: min(320px, 85vw);
	background: var(--bg-elevated);
	border-left: 1px solid var(--border);
	padding: 80px 32px 32px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transform: translateX(100%);
	transition: transform 0.35s var(--ease);
}
.mobile-drawer.open .mobile-panel { transform: translateX(0); }
.mobile-panel a {
	padding: 14px 0;
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-muted);
	border-bottom: 1px solid var(--border);
}

/* ── Hero (home) ── */
.hero {
	position: relative;
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	padding: 80px 64px 80px 48px;
	gap: 48px;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.hero-bg::before {
	content: '';
	position: absolute;
	width: 70vmax;
	height: 70vmax;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(45, 106, 106, 0.22) 0%, transparent 65%);
	top: -20%;
	right: -15%;
}
.hero-bg::after {
	content: '';
	position: absolute;
	width: 50vmax;
	height: 50vmax;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(232, 131, 107, 0.12) 0%, transparent 65%);
	bottom: -10%;
	left: 20%;
}

.hero-copy {
	position: relative;
	z-index: 2;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--coral);
	margin-bottom: 28px;
}
.hero-eyebrow::before {
	content: '';
	width: 32px;
	height: 1px;
	background: var(--coral);
}

.hero-title {
	font-family: var(--font-display);
	font-size: clamp(3rem, 6.5vw, 5.5rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin-bottom: 28px;
}
.hero-title em {
	font-style: italic;
	color: var(--coral);
}

.hero-lead {
	font-size: 1.125rem;
	font-weight: 300;
	color: var(--text-muted);
	max-width: 420px;
	margin-bottom: 40px;
	line-height: 1.75;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 100px;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: all 0.25s var(--ease);
	cursor: pointer;
	border: none;
	font-family: inherit;
}
.btn-primary {
	background: linear-gradient(135deg, var(--coral), #d4614a);
	color: #fff;
	box-shadow: 0 8px 32px rgba(232, 131, 107, 0.35);
}
.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(232, 131, 107, 0.45);
	color: #fff;
}
.btn-ghost {
	background: transparent;
	color: var(--text-muted);
	border: 1px solid var(--border);
}
.btn-ghost:hover {
	border-color: rgba(255,255,255,0.2);
	color: var(--text);
}

.hero-visual {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hour-orbit {
	position: relative;
	width: min(420px, 40vw);
	aspect-ratio: 1;
}

.orbit-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid var(--border);
}
.orbit-ring:nth-child(2) {
	inset: 12%;
	border-color: rgba(232, 131, 107, 0.2);
}
.orbit-ring:nth-child(3) {
	inset: 24%;
	border-color: rgba(45, 106, 106, 0.25);
}

.orbit-fill {
	position: absolute;
	inset: 8%;
	border-radius: 50%;
	background: conic-gradient(var(--coral) 0deg 252deg, transparent 252deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
	animation: spinSlow 40s linear infinite;
}

@keyframes spinSlow {
	to { transform: rotate(360deg); }
}

.orbit-center {
	position: absolute;
	inset: 30%;
	border-radius: 50%;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px;
}
.orbit-num {
	font-family: var(--font-display);
	font-size: 3rem;
	font-weight: 400;
	color: var(--coral);
	line-height: 1;
}
.orbit-label {
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-top: 4px;
}

.orbit-card {
	position: absolute;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 0.75rem;
	backdrop-filter: blur(8px);
	white-space: nowrap;
}
.orbit-card.c1 { top: 8%; right: -8%; }
.orbit-card.c2 { bottom: 18%; left: -12%; }
.orbit-card.c3 { top: 42%; right: -18%; }
.orbit-card strong { color: var(--coral); display: block; font-size: 0.85rem; }

/* ── Bento features ── */
.section {
	padding: 100px 48px 100px 48px;
	position: relative;
}

.section-label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 16px;
}

.section-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 400;
	margin-bottom: 56px;
	max-width: 520px;
	line-height: 1.15;
}

.bento {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-rows: minmax(140px, auto);
	gap: 16px;
}

.bento-item {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 32px;
	position: relative;
	overflow: hidden;
	transition: border-color 0.3s, transform 0.3s var(--ease);
}
.bento-item:hover {
	border-color: rgba(255,255,255,0.14);
	transform: translateY(-3px);
}
.bento-item::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(232,131,107,0.4), transparent);
	opacity: 0;
	transition: opacity 0.3s;
}
.bento-item:hover::before { opacity: 1; }

.b1 { grid-column: 1 / 8; grid-row: span 2; }
.b2 { grid-column: 8 / 13; }
.b3 { grid-column: 8 / 13; }
.b4 { grid-column: 1 / 5; }
.b5 { grid-column: 5 / 9; }
.b6 { grid-column: 9 / 13; }

.bento-icon {
	font-size: 1.5rem;
	margin-bottom: 16px;
	opacity: 0.7;
}
.bento-item h3 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 10px;
	letter-spacing: -0.01em;
}
.bento-item p {
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.65;
	font-weight: 300;
}
.bento-stat {
	font-family: var(--font-display);
	font-size: 4rem;
	font-weight: 400;
	color: var(--coral);
	line-height: 1;
	margin-bottom: 8px;
}
.bento-stat span {
	font-size: 1.5rem;
	color: var(--text-faint);
}

/* ── Philosophy strip ── */
.philosophy {
	padding: 80px 48px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 64px;
	align-items: start;
}
.philosophy-aside {
	font-family: var(--font-display);
	font-size: 5rem;
	font-weight: 400;
	color: var(--teal-dim);
	line-height: 0.9;
	-webkit-text-stroke: 1px rgba(45, 106, 106, 0.3);
	color: transparent;
}
.philosophy-body blockquote {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 400;
	font-style: italic;
	line-height: 1.45;
	color: var(--text);
	margin-bottom: 24px;
}
.philosophy-body cite {
	font-style: normal;
	font-size: 0.85rem;
	color: var(--text-faint);
	letter-spacing: 0.08em;
}

/* ── Legal links band ── */
.legal-band {
	padding: 80px 48px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.legal-card {
	display: block;
	padding: 40px 36px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 24px;
	position: relative;
	overflow: hidden;
	transition: all 0.35s var(--ease);
	color: inherit;
}
.legal-card:hover {
	border-color: rgba(232, 131, 107, 0.3);
	transform: translateY(-4px);
	color: inherit;
}
.legal-card::after {
	content: '→';
	position: absolute;
	bottom: 32px;
	right: 36px;
	font-size: 1.5rem;
	color: var(--coral);
	opacity: 0;
	transform: translateX(-8px);
	transition: all 0.3s var(--ease);
}
.legal-card:hover::after {
	opacity: 1;
	transform: translateX(0);
}
.legal-card-num {
	font-family: var(--font-display);
	font-size: 3rem;
	color: var(--border);
	line-height: 1;
	margin-bottom: 20px;
}
.legal-card h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 12px;
}
.legal-card p {
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.6;
	font-weight: 300;
}

/* ── Footer ── */
.site-footer {
	padding: 48px 48px 40px;
	border-top: 1px solid var(--border);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 32px;
}
.footer-brand {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}
.footer-tagline {
	font-size: 0.8rem;
	color: var(--text-faint);
}
.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 32px;
}
.footer-links a {
	font-size: 0.8rem;
	color: var(--text-muted);
	font-weight: 500;
}
.footer-copy {
	width: 100%;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	font-size: 0.75rem;
	color: var(--text-faint);
}

/* ── Legal / doc pages ── */
.doc-page .shell { display: grid; grid-template-columns: 280px 1fr; }

.doc-sidebar {
	position: sticky;
	top: 0;
	height: 100vh;
	padding: 48px 32px 48px 48px;
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 32px;
	overflow-y: auto;
}

.doc-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--text-muted);
	margin-bottom: 8px;
}
.doc-back:hover { color: var(--coral); }

.doc-sidebar h1 {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.2;
}

.doc-meta {
	font-size: 0.75rem;
	color: var(--text-faint);
	line-height: 1.6;
}

.doc-toc {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.doc-toc a {
	display: block;
	padding: 8px 12px;
	font-size: 0.82rem;
	color: var(--text-muted);
	border-radius: 8px;
	border-left: 2px solid transparent;
	transition: all 0.2s;
}
.doc-toc a:hover, .doc-toc a.active {
	color: var(--text);
	background: var(--bg-card);
	border-left-color: var(--coral);
}

.doc-contact-box {
	margin-top: auto;
	padding: 20px;
	background: var(--teal-dim);
	border: 1px solid rgba(45, 106, 106, 0.3);
	border-radius: 16px;
}
.doc-contact-box p {
	font-size: 0.78rem;
	color: var(--text-muted);
	margin-bottom: 8px;
}
.doc-contact-box a {
	font-size: 0.82rem;
	word-break: break-all;
}

.doc-main {
	padding: 64px 64px 100px 56px;
	max-width: 780px;
}

.doc-main h2 {
	font-family: var(--font-display);
	font-size: 1.65rem;
	font-weight: 600;
	margin: 48px 0 16px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	scroll-margin-top: 32px;
}
.doc-main h2:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.doc-main h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 28px 0 10px;
	color: var(--text);
}

.doc-main p, .doc-main li {
	font-size: 0.925rem;
	color: var(--text-muted);
	line-height: 1.75;
	font-weight: 300;
	margin-bottom: 14px;
}

.doc-main ul, .doc-main ol {
	padding-left: 1.4rem;
	margin-bottom: 20px;
}
.doc-main li { margin-bottom: 8px; }

.doc-updated {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--coral);
	background: var(--coral-dim);
	padding: 6px 14px;
	border-radius: 100px;
	margin-bottom: 24px;
}

.doc-lead {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 400;
	color: var(--text);
	line-height: 1.55;
	margin-bottom: 32px;
}

/* ── Support page extras ── */
.support-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 32px 0 48px;
}
.support-card {
	padding: 28px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
}
.support-card h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 10px;
}
.support-card p {
	font-size: 0.85rem;
	margin-bottom: 0;
}

.faq-item {
	border-bottom: 1px solid var(--border);
	padding: 20px 0;
}
.faq-item summary {
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: '+';
	font-size: 1.25rem;
	color: var(--coral);
	font-weight: 300;
	transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
	margin-top: 12px;
	margin-bottom: 0;
}

.contact-cta {
	margin-top: 48px;
	padding: 40px;
	background: linear-gradient(135deg, rgba(232,131,107,0.1), rgba(45,106,106,0.1));
	border: 1px solid var(--border);
	border-radius: 24px;
	text-align: center;
}
.contact-cta h3 {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 400;
	margin-bottom: 12px;
}
.contact-cta p {
	margin-bottom: 24px;
}
.contact-email {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1rem;
	font-weight: 500;
	color: var(--mint);
	padding: 14px 28px;
	background: rgba(155, 216, 203, 0.08);
	border: 1px solid rgba(155, 216, 203, 0.2);
	border-radius: 100px;
}
.contact-email:hover { color: var(--coral); border-color: rgba(232,131,107,0.3); }

/* ── Responsive ── */
@media (max-width: 1024px) {
	.hero {
		grid-template-columns: 1fr;
		padding: 100px 32px 80px;
		min-height: auto;
	}
	.hero-visual { order: -1; }
	.hour-orbit { width: min(320px, 80vw); }
	.orbit-card { display: none; }
	.bento { grid-template-columns: 1fr 1fr; }
	.b1, .b2, .b3, .b4, .b5, .b6 { grid-column: span 1; grid-row: auto; }
	.b1 { grid-column: span 2; }
	.philosophy { grid-template-columns: 1fr; gap: 24px; }
	.philosophy-aside { font-size: 3rem; }
	.legal-band { grid-template-columns: 1fr; }
	.doc-page .shell { grid-template-columns: 1fr; }
	.doc-sidebar {
		position: relative;
		height: auto;
		border-right: none;
		border-bottom: 1px solid var(--border);
		padding: 80px 24px 32px;
	}
	.doc-main { padding: 40px 24px 80px; }
	.support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.brand-rail { display: none; }
	.shell { margin-left: 0; }
	.topbar { display: flex; }
	.mobile-drawer { display: block; }
	.section { padding: 64px 24px; }
	.bento { grid-template-columns: 1fr; }
	.b1 { grid-column: span 1; }
	.philosophy { padding: 48px 24px; }
	.legal-band { padding: 48px 24px; }
	.site-footer { padding: 40px 24px; }
}
