/* =========================================================
   DIGITAL DUDES MEDIA — DESIGN SYSTEM
   Dark navy premium editorial theme. "Where AI Meets Business."
   ========================================================= */

:root {
	--ddm-blue: #0D6EFD;
	--ddm-navy: #081120;
	--ddm-navy-soft: #0E1B30;
	--ddm-navy-card: #0F2038;
	--ddm-cyan: #2BB3FF;
	--ddm-white: #FFFFFF;
	--ddm-ink-70: rgba(255, 255, 255, 0.7);
	--ddm-ink-50: rgba(255, 255, 255, 0.5);
	--ddm-border: rgba(255, 255, 255, 0.09);
	--ddm-grad: linear-gradient(90deg, var(--ddm-blue), var(--ddm-cyan));

	--font-heading: 'Space Grotesk', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;
	--font-data: 'Manrope', system-ui, sans-serif;

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--container: 1240px;
	--container-narrow: 760px;
	--container-wide: 1400px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body.ddm-theme {
	background: var(--ddm-navy);
	color: var(--ddm-white);
	font-family: var(--font-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ddm-ink-70); }
:focus-visible { outline: 2px solid var(--ddm-cyan); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link { left: -999px; position: absolute; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--ddm-blue); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); }

.ddm-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ddm-container--narrow { max-width: var(--container-narrow); }
.ddm-container--wide { max-width: var(--container-wide); }

.ddm-eyebrow {
	display: inline-block;
	font-family: var(--font-data);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ddm-cyan);
	margin-bottom: 10px;
}

.ddm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ddm-btn--primary { background: var(--ddm-grad); color: #06111f; box-shadow: 0 8px 24px rgba(13,110,253,0.35); }
.ddm-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(43,179,255,0.45); }
.ddm-btn--ghost { background: transparent; border-color: var(--ddm-border); color: var(--ddm-white); }
.ddm-btn--ghost:hover { border-color: var(--ddm-cyan); color: var(--ddm-cyan); }

.ddm-link-arrow { color: var(--ddm-cyan); font-weight: 600; font-size: 14px; white-space: nowrap; }
.ddm-link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.ddm-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(8, 17, 32, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--ddm-border);
}
.ddm-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.ddm-header__brand img, .ddm-header__brand .custom-logo { max-height: 44px; width: auto; }
.ddm-logo-fallback { display: inline-flex; }
.ddm-nav__list { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.ddm-nav__list a { font-size: 14.5px; font-weight: 500; color: var(--ddm-ink-70); }
.ddm-nav__list a:hover { color: var(--ddm-white); }
.ddm-header__actions { display: flex; align-items: center; gap: 12px; }
.ddm-icon-btn { background: transparent; border: 1px solid var(--ddm-border); color: var(--ddm-white); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ddm-icon-btn:hover { border-color: var(--ddm-cyan); color: var(--ddm-cyan); }
.ddm-header__newsletter { padding: 10px 20px; font-size: 14px; }
.ddm-hamburger { display: none; flex-direction: column; gap: 4px; }
.ddm-hamburger span { width: 18px; height: 2px; background: currentColor; display: block; }

.ddm-search-panel { border-top: 1px solid var(--ddm-border); background: var(--ddm-navy-soft); }
.ddm-search-form { display: flex; gap: 10px; padding: 16px 24px; }
.ddm-search-form input { flex: 1; background: var(--ddm-navy-card); border: 1px solid var(--ddm-border); border-radius: var(--radius-sm); color: #fff; padding: 12px 16px; font-size: 15px; }
.ddm-search-form button { background: var(--ddm-grad); border: none; color: #06111f; font-weight: 600; padding: 0 22px; border-radius: var(--radius-sm); cursor: pointer; }

/* ---------- Hero ---------- */
.ddm-hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.ddm-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.ddm-hero__title { font-size: clamp(38px, 5.5vw, 64px); }
.ddm-hero__sub { font-size: 19px; max-width: 520px; }
.ddm-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.ddm-hero__visual { position: relative; height: 320px; }
.ddm-hero__orb {
	position: absolute; inset: 0; margin: auto; width: 280px; height: 280px; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, rgba(43,179,255,0.35), rgba(13,110,253,0.08) 60%, transparent 70%);
	filter: blur(4px);
}
.ddm-hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Sections ---------- */
.ddm-section { padding: 64px 0; }
.ddm-section--alt { background: var(--ddm-navy-soft); }
.ddm-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ddm-section__title { font-size: 28px; margin: 0; }

.ddm-grid { display: grid; gap: 28px; }
.ddm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ddm-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Story card ---------- */
.ddm-card { background: var(--ddm-navy-card); border: 1px solid var(--ddm-border); border-radius: var(--radius-md); overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.ddm-card:hover { transform: translateY(-4px); border-color: rgba(43,179,255,0.4); }
.ddm-card__media { display: block; aspect-ratio: 16/10; background: linear-gradient(135deg, #0c2038, #081120); overflow: hidden; }
.ddm-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ddm-card__media--placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(13,110,253,0.25), rgba(43,179,255,0.08)); }
.ddm-card__body { padding: 20px; }
.ddm-card__title { font-size: 19px; margin: 0 0 8px; }
.ddm-card__title a:hover { color: var(--ddm-cyan); }
.ddm-card__excerpt { font-size: 14.5px; margin-bottom: 12px; }
.ddm-card__meta { font-family: var(--font-data); font-size: 12.5px; color: var(--ddm-ink-50); display: flex; gap: 8px; }

/* ---------- Featured insight ---------- */
.ddm-featured__card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--ddm-navy-card); border: 1px solid var(--ddm-border); border-radius: var(--radius-lg); overflow: hidden; }
.ddm-featured__media { aspect-ratio: 16/11; overflow: hidden; background: linear-gradient(135deg, #0c2038, #081120); }
.ddm-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.ddm-featured__body { padding: 32px 40px 32px 0; }
.ddm-featured__body h3 { font-size: 26px; }

/* ---------- AI tools directory ---------- */
.ddm-tool-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ddm-tool-filters a { font-size: 13.5px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ddm-border); color: var(--ddm-ink-70); }
.ddm-tool-filters a:hover, .ddm-tool-filters a.is-active { border-color: var(--ddm-cyan); color: var(--ddm-cyan); }

/* ---------- AI tools chips ---------- */
.ddm-tool-chip { display: flex; align-items: center; gap: 12px; background: var(--ddm-navy-card); border: 1px solid var(--ddm-border); border-radius: var(--radius-md); padding: 16px; font-weight: 600; }
.ddm-tool-chip img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.ddm-tool-chip:hover { border-color: var(--ddm-cyan); }

/* ---------- Newsletter ---------- */
.ddm-newsletter { background: radial-gradient(120% 140% at 50% 0%, rgba(13,110,253,0.18), transparent 60%), var(--ddm-navy-soft); border-top: 1px solid var(--ddm-border); border-bottom: 1px solid var(--ddm-border); text-align: center; }
.ddm-newsletter__inner { max-width: 620px; }
.ddm-newsletter h2 { font-size: 30px; }
.ddm-newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; justify-content: center; }
.ddm-newsletter-form input { flex: 1; min-width: 180px; background: var(--ddm-navy-card); border: 1px solid var(--ddm-border); color: #fff; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 15px; }
.ddm-newsletter-form button { background: var(--ddm-grad); border: none; color: #06111f; font-weight: 700; padding: 13px 26px; border-radius: var(--radius-sm); cursor: pointer; }
.ddm-form-message { margin-top: 14px; font-size: 14px; }
.ddm-form-message.success { color: #4ADE80; }
.ddm-form-message.error { color: #F87171; }

/* ---------- About teaser / partner CTA ---------- */
.ddm-about-teaser__inner { max-width: 720px; }
.ddm-about-teaser h2, .ddm-partner-cta h2 { font-size: 30px; }
.ddm-partner-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--ddm-navy-card); border: 1px solid var(--ddm-border); border-radius: var(--radius-lg); padding: 44px; }

/* ---------- Social strip ---------- */
.ddm-social-strip__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.ddm-social-strip__links { display: flex; gap: 24px; }
.ddm-social-strip__links a:hover { color: var(--ddm-cyan); }

/* ---------- Footer ---------- */
.ddm-footer { background: #060D18; border-top: 1px solid var(--ddm-border); padding-top: 64px; }
.ddm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.ddm-footer__brand p { font-size: 14px; margin: 16px 0; }
.ddm-footer__social { display: flex; gap: 16px; font-size: 13.5px; }
.ddm-footer__social a:hover { color: var(--ddm-cyan); }
.ddm-footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ddm-ink-50); margin-bottom: 16px; }
.ddm-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ddm-footer__col a { font-size: 14.5px; color: var(--ddm-ink-70); }
.ddm-footer__col a:hover { color: var(--ddm-cyan); }
.ddm-footer__col p { font-size: 14px; }
.ddm-footer__bottom { border-top: 1px solid var(--ddm-border); padding: 20px 0; }
.ddm-footer__bottom p { margin: 0; font-size: 13px; color: var(--ddm-ink-50); }

/* ---------- Article ---------- */
.ddm-breadcrumbs { font-size: 13px; color: var(--ddm-ink-50); margin-bottom: 18px; }
.ddm-breadcrumbs a:hover { color: var(--ddm-cyan); }
.ddm-article__header { padding: 56px 0 32px; }
.ddm-article__title { font-size: clamp(30px, 4vw, 46px); margin-top: 12px; }
.ddm-article__subtitle { font-size: 18px; }
.ddm-article__meta { font-family: var(--font-data); font-size: 13px; color: var(--ddm-ink-50); display: flex; gap: 10px; flex-wrap: wrap; }
.ddm-article__featured-image { margin: 0 auto 40px; border-radius: var(--radius-lg); overflow: hidden; }
.ddm-article__layout { padding-bottom: 40px; }
.ddm-article__content { font-size: 18px; line-height: 1.8; }
.ddm-article__content h2 { font-size: 26px; margin-top: 1.6em; }
.ddm-article__content h3 { font-size: 21px; margin-top: 1.4em; }
.ddm-article__content a { color: var(--ddm-cyan); text-decoration: underline; }
.ddm-article__content img { border-radius: var(--radius-md); margin: 1.5em 0; }
.ddm-article__content blockquote { border-left: 3px solid var(--ddm-cyan); margin: 1.8em 0; padding: 0.4em 0 0.4em 1.4em; font-style: italic; color: var(--ddm-white); }
.ddm-article__tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.ddm-article__tags a { font-size: 13px; background: var(--ddm-navy-card); border: 1px solid var(--ddm-border); padding: 6px 12px; border-radius: 999px; color: var(--ddm-ink-70); }
.ddm-article__share { display: flex; align-items: center; gap: 14px; margin-top: 32px; font-size: 14px; color: var(--ddm-ink-50); }
.ddm-article__share a, .ddm-copy-link { color: var(--ddm-cyan); background: none; border: none; cursor: pointer; font: inherit; }

/* ---------- Archives / category / search / page / 404 ---------- */
.ddm-archive-header, .ddm-category-hero { padding-top: 64px; padding-bottom: 8px; }
.ddm-archive__title { font-size: clamp(28px, 4vw, 40px); }
.ddm-archive__desc { max-width: 640px; }
.ddm-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
.ddm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--ddm-border); color: var(--ddm-ink-70); }
.ddm-pagination .page-numbers.current { background: var(--ddm-grad); color: #06111f; border-color: transparent; }
.ddm-page__header { padding: 64px 0 24px; }
.ddm-page__title { font-size: clamp(30px, 4vw, 46px); }
.ddm-page__content { font-size: 17px; line-height: 1.8; padding-bottom: 64px; }
.ddm-404 { padding: 100px 0; text-align: center; }
.ddm-404 h1 { font-size: 32px; }
.ddm-404 .ddm-search-form { justify-content: center; margin: 24px 0; }
.ddm-404 .ddm-btn { margin-top: 12px; }

/* ---------- Generic forms (contact/partnerships/affiliate) ---------- */
.ddm-form { display: grid; gap: 18px; margin-top: 24px; }
.ddm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ddm-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--ddm-ink-70); }
.ddm-form input, .ddm-form select, .ddm-form textarea {
	width: 100%; background: var(--ddm-navy-card); border: 1px solid var(--ddm-border); color: #fff;
	padding: 13px 16px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15px;
}
.ddm-form textarea { min-height: 140px; resize: vertical; }
.ddm-form input:focus, .ddm-form select:focus, .ddm-form textarea:focus { border-color: var(--ddm-cyan); }
.ddm-form button[type="submit"] { justify-self: start; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.ddm-hero__inner { grid-template-columns: 1fr; }
	.ddm-featured__card { grid-template-columns: 1fr; }
	.ddm-featured__body { padding: 28px; }
	.ddm-grid--3, .ddm-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.ddm-footer__grid { grid-template-columns: 1fr 1fr; }
	.ddm-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.ddm-nav { position: fixed; inset: 76px 0 0 0; background: var(--ddm-navy); padding: 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 49; }
	.ddm-nav.is-open { transform: translateX(0); }
	.ddm-nav__list { flex-direction: column; gap: 4px; }
	.ddm-nav__list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--ddm-border); }
	.ddm-hamburger { display: inline-flex; }
	.ddm-header__newsletter { display: none; }
}
@media (max-width: 720px) {
	.ddm-grid--3, .ddm-grid--4 { grid-template-columns: 1fr; }
	.ddm-footer__grid { grid-template-columns: 1fr; }
	.ddm-partner-cta__inner { flex-direction: column; align-items: flex-start; }
}
