/* ==========================================================================
   DeshipOS — Hero widget  ·  "Mint Aurora" theme
   Light premium stage washed in a soft brand-green gradient (mesh blooms over
   a near-white base), dark type, white-glass badge / stats / secondary button,
   and the product in a soft white frame surrounded by floating glass UI cards
   (check, rating, growth ring, chart) for a rich premium feel.
   Mobile-first: content stacks above the visual; desktop is two columns.
   Depends on assets/css/base.css for tokens.
   NOTE: deliberately gradient + glass — a documented exception to the flat,
   single-surface widget style. Don't "flatten" it.
   ========================================================================== */

.deshipos-hero {
	--dhr-accent:       var(--dew-brand, #16A34A);
	--dhr-accent-2:     #22C55E;
	--dhr-accent-deep:  var(--dew-brand-strong, #15803D);
	--dhr-amber:        #F59E0B;

	--dhr-ink:          var(--dew-ink, #0F172A);
	--dhr-muted:        var(--dew-muted, #475569);
	--dhr-faint:        #64748B;

	/* Glass surface tokens (white film over the light stage). */
	--dhr-glass:        rgba(255, 255, 255, .72);
	--dhr-glass-strong: rgba(255, 255, 255, .92);
	--dhr-glass-bd:     rgba(255, 255, 255, .9);
	--dhr-hairline:     rgba(15, 23, 42, .08);
	--dhr-shadow:       0 24px 60px -28px rgba(16, 100, 60, .35);

	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding: 80px 20px;
	color: var(--dhr-ink);
	isolation: isolate;
	overflow: hidden;

	/* Soft brand-green aurora over a near-white base. */
	background-color: #F6FBF8;
	background-image:
		radial-gradient(58% 52% at 84% 6%, rgba(34, 197, 94, .26), transparent 60%),
		radial-gradient(52% 48% at 8% 94%, rgba(16, 185, 129, .18), transparent 58%),
		radial-gradient(40% 34% at 50% 50%, rgba(132, 204, 152, .10), transparent 70%),
		linear-gradient(155deg, #ECFDF3 0%, #FFFFFF 46%, #F0FDF7 100%);
}
.deshipos-hero *,
.deshipos-hero *::before,
.deshipos-hero *::after { box-sizing: border-box; }

/* Faint green dotted grid for subtle texture — sits beneath all content. */
.deshipos-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		radial-gradient(rgba(22, 163, 74, .07) 1px, transparent 1px);
	background-size: 30px 30px;
	-webkit-mask-image: radial-gradient(100% 75% at 50% 0%, #000 0%, transparent 72%);
	        mask-image: radial-gradient(100% 75% at 50% 0%, #000 0%, transparent 72%);
	opacity: .7;
	pointer-events: none;
}

.deshipos-hero__inner {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 48px;
	align-items: stretch;
}

/* ----- Content column ----- */
.deshipos-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	min-width: 0;
}

/* ----- Badge (glass pill) ----- */
.deshipos-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px 7px 12px;
	background: var(--dhr-glass);
	color: var(--dhr-accent-deep);
	border: 1px solid var(--dhr-glass-bd);
	border-radius: 999px;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: var(--dew-tracking-snug);
	line-height: 1.4;
	-webkit-backdrop-filter: blur(10px);
	        backdrop-filter: blur(10px);
	box-shadow: 0 8px 22px -14px rgba(16, 100, 60, .45),
	            inset 0 1px 0 rgba(255, 255, 255, .8);
}
.deshipos-hero__badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--dhr-accent-2);
}
.deshipos-hero__badge-icon svg { display: block; }

/* ----- Heading ----- */
.deshipos-hero__heading {
	margin: 0;
	font-size: clamp(2.1rem, 5.6vw, 3.75rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: var(--dew-tracking-tight);
	color: var(--dhr-ink);
	text-wrap: balance;
}
.deshipos-hero__highlight {
	background: linear-gradient(100deg, #16A34A 0%, #22C55E 50%, #15803D 100%);
	-webkit-background-clip: text;
	        background-clip: text;
	-webkit-text-fill-color: transparent;
	        color: transparent;
}

/* ----- Description ----- */
.deshipos-hero__description {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--dhr-muted);
	max-width: 540px;
}

/* ----- Buttons ----- */
.deshipos-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.deshipos-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 12px;
	font-size: .9375rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: transform var(--dew-dur-fast) var(--dew-ease-out),
	            background-color var(--dew-dur-fast) var(--dew-ease-out),
	            color var(--dew-dur-fast) var(--dew-ease-out),
	            box-shadow var(--dew-dur-base) var(--dew-ease-out),
	            border-color var(--dew-dur-fast) var(--dew-ease-out);
}
.deshipos-hero__btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, .35);
}

.deshipos-hero__btn--primary {
	background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
	border-color: rgba(16, 100, 60, .25);
	color: #FFFFFF;
	box-shadow: 0 12px 28px -10px rgba(22, 163, 74, .6),
	            inset 0 1px 0 rgba(255, 255, 255, .35);
}
.deshipos-hero__btn--primary:hover {
	color: #FFFFFF;
	transform: translateY(-2px);
	box-shadow: 0 18px 38px -10px rgba(22, 163, 74, .72),
	            inset 0 1px 0 rgba(255, 255, 255, .45);
}

.deshipos-hero__btn--secondary {
	background: var(--dhr-glass-strong);
	border-color: var(--dhr-hairline);
	color: var(--dhr-ink);
	-webkit-backdrop-filter: blur(10px);
	        backdrop-filter: blur(10px);
	box-shadow: 0 8px 20px -14px rgba(16, 100, 60, .4);
}
.deshipos-hero__btn--secondary:hover {
	border-color: rgba(22, 163, 74, .5);
	color: var(--dhr-accent-deep);
	transform: translateY(-2px);
}

.deshipos-hero__btn-arrow {
	display: inline-block;
	transition: transform var(--dew-dur-base) var(--dew-ease-out);
}
.deshipos-hero__btn--primary:hover .deshipos-hero__btn-arrow {
	transform: translateX(3px);
}

/* ----- Stats (glass card) ----- */
.deshipos-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	margin-top: 16px;
	width: fit-content;
	max-width: 100%;
	align-self: flex-start;
	background: var(--dhr-glass);
	border: 1px solid var(--dhr-glass-bd);
	border-radius: 18px;
	padding: 20px 28px;
	-webkit-backdrop-filter: blur(14px);
	        backdrop-filter: blur(14px);
	box-shadow: var(--dhr-shadow),
	            inset 0 1px 0 rgba(255, 255, 255, .8);
}

.deshipos-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	flex: 0 0 auto;
	min-width: 110px;
}

.deshipos-hero__stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--dhr-hairline);
	border-radius: 12px;
	background: linear-gradient(180deg, #FFFFFF, #F0FDF4);
	color: var(--dhr-accent);
	flex-shrink: 0;
	line-height: 1;
}
.deshipos-hero__stat-icon svg {
	width: 20px;
	height: 20px;
	display: block;
	fill: var(--dhr-accent);
}
.deshipos-hero__stat-icon svg path,
.deshipos-hero__stat-icon svg g,
.deshipos-hero__stat-icon svg circle,
.deshipos-hero__stat-icon svg rect,
.deshipos-hero__stat-icon svg polygon {
	fill: var(--dhr-accent);
}
.deshipos-hero__stat-icon i { font-size: 18px; line-height: 1; color: var(--dhr-accent); }

.deshipos-hero__stat-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1.2;
}
.deshipos-hero__stat-value {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--dhr-ink);
	letter-spacing: var(--dew-tracking-snug);
	line-height: 1.1;
}
.deshipos-hero__stat-label {
	font-size: .8125rem;
	color: var(--dhr-faint);
	font-weight: 500;
	line-height: 1.3;
}

/* ----- Visual / Image (soft frame + glow + floating cards) ----- */
.deshipos-hero__visual {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

/* Coloured glow bloom behind the frame. */
.deshipos-hero__visual-glow {
	position: absolute;
	z-index: 0;
	inset: 4% 2%;
	border-radius: 50%;
	background:
		radial-gradient(50% 50% at 55% 45%, rgba(34, 197, 94, .35), transparent 70%),
		radial-gradient(45% 55% at 75% 70%, rgba(16, 185, 129, .22), transparent 72%);
	filter: blur(48px);
	pointer-events: none;
}

.deshipos-hero__frame {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 12px;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .8));
	border: 1px solid var(--dhr-glass-bd);
	-webkit-backdrop-filter: blur(8px);
	        backdrop-filter: blur(8px);
	box-shadow: 0 40px 80px -34px rgba(16, 100, 60, .42),
	            0 0 0 1px rgba(255, 255, 255, .6),
	            inset 0 1px 0 rgba(255, 255, 255, .9);
}

.deshipos-hero__image {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 14px;
	box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .35);
}

/* ----- Floating glass cards (decorative — icon/visual only, no copy) ----- */
.deshipos-hero__chip {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border-radius: 14px;
	background: var(--dhr-glass-strong);
	border: 1px solid var(--dhr-glass-bd);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	        backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 22px 45px -20px rgba(16, 100, 60, .5),
	            inset 0 1px 0 rgba(255, 255, 255, .9);
	animation: dhr-float 6s ease-in-out infinite;
}
.deshipos-hero__chip-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: linear-gradient(180deg, #22C55E, #16A34A);
	color: #FFFFFF;
	flex-shrink: 0;
	box-shadow: 0 8px 18px -6px rgba(34, 197, 94, .7);
}
.deshipos-hero__chip-ic svg { display: block; width: 18px; height: 18px; }
.deshipos-hero__chip-lines {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.deshipos-hero__chip-lines i {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: rgba(15, 23, 42, .16);
}
.deshipos-hero__chip-lines i:first-child { width: 54px; }
.deshipos-hero__chip-lines i:last-child  { width: 34px; background: rgba(15, 23, 42, .1); }

.deshipos-hero__chip--1 { top: 9%;  left: -7%;  animation-delay: 0s; }
.deshipos-hero__chip--2 { bottom: 13%; right: -5%; animation-delay: -3s; }

/* Rating card — amber stars + a skeleton line. */
.deshipos-hero__chip--rating { bottom: 6%; left: -4%; animation-delay: -1.6s; }
.deshipos-hero__stars {
	display: inline-flex;
	gap: 2px;
	color: var(--dhr-amber);
}
.deshipos-hero__stars svg { width: 14px; height: 14px; display: block; }

/* Growth ring badge — conic progress dial with an up-trend glyph. */
.deshipos-hero__ring {
	position: absolute;
	z-index: 2;
	top: 6%;
	right: -6%;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: conic-gradient(#22C55E 0% 78%, rgba(34, 197, 94, .16) 78% 100%);
	box-shadow: 0 22px 45px -20px rgba(16, 100, 60, .55);
	animation: dhr-float 6s ease-in-out infinite;
	animation-delay: -4.4s;
}
.deshipos-hero__ring-core {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #FFFFFF;
	display: grid;
	place-items: center;
	color: var(--dhr-accent);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.deshipos-hero__ring-core svg { width: 26px; height: 26px; display: block; }

@keyframes dhr-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-12px); }
}

/* ==========================================================================
   Tablet — adjust spacing
   ========================================================================== */
@media (min-width: 600px) {
	.deshipos-hero {
		padding: 96px 32px;
	}
	.deshipos-hero__inner {
		gap: 56px;
	}
}

/* ==========================================================================
   Desktop — two-column layout (content left, image right by default).
   ========================================================================== */
@media (min-width: 960px) {
	.deshipos-hero {
		padding: 112px 40px;
	}
	.deshipos-hero__inner {
		flex-direction: row;
		align-items: center;
		gap: 48px !important;
	}
	.deshipos-hero__content,
	.deshipos-hero__visual {
		flex: 1 1 0;
	}

	/* Swap column order when image is set to "left". */
	.deshipos-hero--image-left .deshipos-hero__content { order: 2; }
	.deshipos-hero--image-left .deshipos-hero__visual  { order: 1; }

	.deshipos-hero__buttons { gap: 16px; }
	.deshipos-hero__stats   { gap: 32px 40px; }
}

@media (min-width: 1200px) {
	.deshipos-hero__inner { gap: 80px !important; }
}

/* Hide the negatively-offset floating cards on small screens (they'd overflow). */
@media (max-width: 560px) {
	.deshipos-hero__chip,
	.deshipos-hero__ring { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.deshipos-hero *,
	.deshipos-hero *::before,
	.deshipos-hero *::after {
		transition-duration: .01ms !important;
		animation: none !important;
	}
}
