/*
 * DigitalDinasty 2.0 — "Dynasty" identity.
 * Built around the graffiti crown logo: black ink, raw paper, one spray-yellow accent,
 * poster type (Anton) and hand-tagged words (Permanent Marker).
 */
:root {
	--bg: #0b0b0b;
	--bg2: #141414;
	--paper: #f1ede4;
	--ink: #f6f3ec;
	--ink-dark: #0b0b0b;
	--mute: #a19d95;
	--spray: #ffd400;
	--line: rgba(246, 243, 236, .14);
	--g1: #ffd400; --g2: #ffd400; --g3: #ffd400;
	--grad: var(--spray);
	--grad-loop: linear-gradient(90deg, var(--spray), var(--spray));
	--display: "Anton", "Impact", "Arial Narrow", sans-serif;
	--tag: "Permanent Marker", "Comic Sans MS", cursive;
	--body: "Inter Tight", system-ui, sans-serif;
	--wrap: 1280px;
}

body { font: 400 16px/1.65 var(--body); }
::selection { background: var(--spray); color: #000; }

/* Headings: poster type */
.dd-h2, .dy-title, .dd-tcard h3, .dd-stat b, .dd-step-n, .dd-buy-n {
	font-family: var(--display) !important;
	font-weight: 400 !important;
	text-transform: uppercase;
	letter-spacing: .01em !important;
}
.dd-h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem) !important; line-height: .98 !important; }
.dd-grad, .dd-street-title em, .dd-spray {
	background: none !important;
	-webkit-background-clip: initial !important; background-clip: initial !important;
	color: var(--spray) !important;
	font-family: var(--tag) !important; text-transform: none !important; letter-spacing: 0 !important;
	animation: none !important;
	display: inline-block; transform: rotate(-2deg);
}
.dd-kicker { color: var(--spray); letter-spacing: .3em; }
.dd-kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* Buttons: square, poster-like */
.dd-btn, .dy-btn {
	border-radius: 0 !important;
	font-family: var(--body); font-weight: 700; letter-spacing: .12em;
}
.dd-btn { background: var(--ink); color: var(--ink-dark); }
.dd-btn::before { background: var(--spray) !important; border-radius: 0 !important; }
.dd-btn:hover { color: #000 !important; }
.dd-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dd-btn-etsy { background: var(--spray) !important; color: #000 !important; }

/* Nav */
.dd-nav.is-scrolled { background: rgba(11, 11, 11, .86); }
.dd-logo-img { width: 92px; height: auto; transition: transform .5s var(--ease); }
.dd-logo:hover .dd-logo-img { transform: rotate(-4deg) scale(1.04); }
.dd-links a { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; }
.dd-nav > .dd-btn { background: var(--spray); color: #000; }

/* =========================================================================
   HERO
   ========================================================================= */
.dy-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100svh;
	padding: 120px 0 56px;
	overflow: hidden;
	background:
		radial-gradient(1200px 600px at 85% 20%, rgba(255, 212, 0, .07), transparent 60%),
		var(--bg);
}
.dy-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}
.dy-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.dy-tag {
	display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 8px 14px;
	background: var(--paper); color: #000; transform: rotate(-1.5deg);
	font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.dy-tag img { width: 34px; height: auto; filter: invert(1); }
.dy-title { margin: 0 0 22px; font-size: clamp(3.2rem, 7.4vw, 7rem); line-height: .9; color: var(--ink); }
.dy-line { display: block; }
.dy-crowned { position: relative; display: inline-block; color: var(--spray); }
.dy-crown {
	position: absolute; right: -.62em; top: -.18em; width: .62em; height: auto;
	transform: rotate(14deg);
	fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round;
	overflow: visible;
}
.dy-crown path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dyDraw 1.1s .9s var(--ease) forwards; }
.dy-crown circle { fill: var(--ink); stroke: none; opacity: 0; animation: dyPop .4s 1.8s var(--ease) forwards; }
@keyframes dyDraw { to { stroke-dashoffset: 0; } }
@keyframes dyPop { from { opacity: 0; transform: scale(.2); transform-origin: center; } to { opacity: 1; transform: none; } }
.dy-lead { max-width: 46ch; margin: 0 0 30px; color: var(--mute); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
.dy-lead mark { background: none; color: var(--ink); box-shadow: inset 0 -.42em 0 rgba(255, 212, 0, .38); }
.dy-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.dy-btn {
	display: inline-flex; align-items: center; gap: 12px; padding: 17px 26px;
	background: var(--spray); color: #000; font-size: .78rem; text-transform: uppercase; white-space: nowrap;
	box-shadow: 5px 5px 0 var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.dy-btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.dy-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.dy-btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dy-btn-line:hover { background: var(--ink); color: #000; box-shadow: 5px 5px 0 var(--spray); }
.dy-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--mute); font-size: .82rem; }
.dy-proof b { margin-right: 4px; font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--ink); letter-spacing: .02em; }

/* Theme switcher */
.dy-switch { display: grid; gap: 18px; }
.dy-stage { position: relative; }
.dy-browser { position: relative; background: #1a1a1a; border: 1.5px solid #2a2a2a; box-shadow: 14px 14px 0 rgba(255, 212, 0, .9); transform: rotate(1deg); transition: transform .6s var(--ease); }
.dy-switch:hover .dy-browser { transform: rotate(0); }
.dy-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #2a2a2a; }
.dy-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.dy-bar span { margin-left: 10px; padding: 3px 10px; background: #0f0f0f; color: var(--mute); font-size: .72rem; letter-spacing: .04em; }
.dy-screens { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.dy-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.dy-screens img.is-active { opacity: 1; transform: none; }
.dy-sticker {
	position: absolute; z-index: 3; padding: 9px 14px; background: var(--paper); color: #000;
	font-family: var(--tag); font-size: .95rem; box-shadow: 3px 3px 0 #000; pointer-events: none;
}
.dy-sticker-a { top: -16px; left: -18px; transform: rotate(-6deg); }
.dy-sticker-b { right: -14px; bottom: 54px; transform: rotate(5deg); background: var(--spray); }
.dy-open {
	position: absolute; z-index: 3; right: 18px; bottom: 14px;
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
	background: #000; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.dy-stage:hover .dy-open, .dy-open:focus-visible { opacity: 1; transform: none; }
.dy-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dy-list button {
	position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: baseline; width: 100%;
	padding: 12px 14px 14px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
	background: none; color: var(--mute); text-align: left; cursor: pointer; transition: background .3s, color .3s;
}
.dy-list .dy-n { font-size: .7rem; letter-spacing: .1em; }
.dy-list b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.dy-list small { grid-column: 2; font-size: .72rem; line-height: 1.35; }
.dy-list button:hover { background: rgba(255, 255, 255, .04); }
.dy-list button.is-active { background: var(--ink); color: #333; }
.dy-list button.is-active b { color: #000; }
.dy-prog { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--spray); transform: scaleX(0); transform-origin: left; }
.dy-switch.is-auto .dy-list button.is-active .dy-prog { animation: dyProg 4.5s linear both; }
@keyframes dyProg { to { transform: scaleX(1); } }

/* Old hero bits not used any more */
.dd-hero, .dd-loader { display: none !important; }

/* =========================================================================
   SECTIONS
   ========================================================================= */
.dd-marquee { background: var(--spray); color: #000; transform: rotate(-1deg); margin: 0 -2vw; border-block: 2px solid #000; }
.dd-marquee span { font-family: var(--display) !important; text-transform: uppercase; letter-spacing: .03em; color: #000 !important; -webkit-text-stroke: 0 !important; }
.dd-marquee b { color: #000 !important; }

/* Theme cards */
.dd-tcard { border-radius: 0 !important; background: #121212 !important; border: 1px solid var(--line) !important; }
.dd-tcard-media, .dd-browser, .dd-shot, .dd-tcard-media img, .dd-tcard-media video { border-radius: 0 !important; }
.dd-tcard h3 { font-size: clamp(2.2rem, 3.6vw, 3.4rem) !important; line-height: .95 !important; }
.dd-tags li, .dd-badge { border-radius: 0 !important; }
.dd-badge-live { background: var(--spray) !important; color: #000 !important; }
.dd-tcard-more { background: var(--spray) !important; color: #000 !important; }
.dd-tcard-more .dd-kicker { color: #000; }
.dd-tcard-more h3 { color: #000; }
.dd-tcard-more .dd-btn { background: #000; color: #fff; }

/* Paper sections: rhythm like the logo, black on white */
.dd-features, .dd-buy {
	position: relative;
	color: var(--ink-dark);
}
.dd-features::before, .dd-buy::before {
	content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
	background: var(--paper);
}
.dd-features, .dd-buy { isolation: isolate; padding-top: clamp(64px, 8vw, 110px) !important; padding-bottom: clamp(64px, 8vw, 110px) !important; }
.dd-features .dd-h2, .dd-buy .dd-h2 { color: #000; }
.dd-features .dd-grad, .dd-buy .dd-grad { color: #000 !important; box-shadow: inset 0 -.3em 0 var(--spray); }
.dd-features .dd-kicker, .dd-buy .dd-kicker { color: #000; }
.dd-cell, .dd-buy-card { border-radius: 0 !important; background: #fff !important; border: 1.5px solid #000 !important; color: #000; box-shadow: 6px 6px 0 #000; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.dd-cell:hover, .dd-buy-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--spray), 9px 9px 0 1.5px #000; }
.dd-cell h3, .dd-buy-card h3 { color: #000 !important; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: 1.35rem; }
.dd-cell p, .dd-buy-card p { color: #3a3a3a !important; }
.dd-cell .dd-ico { color: #000; }
.dd-buy-n { color: #000 !important; background: var(--spray); padding: 2px 8px; display: inline-block; }
.dd-buy-cta .dd-btn { background: #000; color: #fff; }
.dd-mock, .dd-picker button, .dd-cell-brand .dd-mock * { border-radius: 0 !important; }

/* Stats & statement */
.dd-stat b { color: var(--ink); font-size: clamp(3rem, 6vw, 5.4rem) !important; }
.dd-stat:nth-child(2n) b { color: var(--spray); }
.dd-statement p, .dd-statement { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: 1.02 !important; }

/* Steps */
.dd-step-n { color: var(--spray) !important; font-size: 2.6rem !important; }
.dd-steps h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }

/* FAQ, contact, footer */
.dd-faq details, .dd-faq-item, .dd-contact-card, .dd-input, .dd-contact input, .dd-contact textarea { border-radius: 0 !important; }

/* Cursor ring in yellow */
.dd-cursor-ring { border-color: var(--spray) !important; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
	.dy-hero { min-height: 0; padding: 110px 0 60px; }
	.dy-hero-grid { grid-template-columns: minmax(0, 1fr); }
	.dy-switch { max-width: 720px; }
}
@media (max-width: 640px) {
	.dy-hero { padding: 96px 0 48px; }
	.dy-title { font-size: clamp(3rem, 15.5vw, 4.4rem); }
	.dy-crown { width: .55em; right: -.58em; top: -.12em; }
	.dy-cta .dy-btn { flex: 1 1 100%; justify-content: center; }
	.dy-proof { gap: 6px 16px; font-size: .78rem; }
	.dy-browser { box-shadow: 8px 8px 0 rgba(255, 212, 0, .9); }
	.dy-sticker { font-size: .78rem; padding: 6px 10px; }
	.dy-sticker-a { top: -12px; left: -6px; }
	.dy-sticker-b { right: -6px; }
	.dy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dy-list small { display: none; }
	.dy-list b { font-size: 1rem; }
	.dy-open { opacity: 1; transform: none; right: 10px; bottom: 10px; padding: 8px 10px; font-size: .62rem; }
	.dd-h2 { font-size: clamp(2.1rem, 10vw, 3rem) !important; }
	.dd-cell, .dd-buy-card { box-shadow: 4px 4px 0 #000; }
}

/* 2.0 fixes */
.dd-features .dd-grad, .dd-features .dd-grad *, .dd-buy .dd-grad, .dd-buy .dd-grad * { color: #000 !important; -webkit-text-fill-color: #000 !important; }
.dd-features .dd-h2 *, .dd-buy .dd-h2 * { -webkit-text-fill-color: currentColor; }
.dd-features .dd-h2, .dd-buy .dd-h2 { color: #000 !important; }
.dd-step-n, .dd-steps .dd-step-n { border-radius: 0 !important; }
.dd-faq summary, .dd-faq h3, .dd-faq button, .dd-faq-q { font-family: var(--body) !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: clamp(1rem, 1.4vw, 1.2rem) !important; }
.dd-faq [class*="icon"], .dd-faq summary span:last-child { border-radius: 0 !important; }
.dd-acc summary { font: 600 clamp(1.05rem, 1.6vw, 1.3rem)/1.35 var(--body) !important; letter-spacing: 0 !important; padding: 22px 0 !important; }
.dd-acc summary:hover { color: var(--spray) !important; }
.dd-acc summary i, .dd-acc summary span, .dd-acc summary::after { border-radius: 0 !important; }
.dd-acc details[open] summary { color: var(--spray); }
.dd-buy-n, .dd-buy-card .dd-buy-n { border-radius: 0 !important; width: auto !important; height: auto !important; padding: 3px 9px !important; font-size: .95rem !important; }
