/* Main page styles */

/* ==============================
   Base page shell
============================== */

h3 {
	margin: 0;
}

.hero {
	margin-bottom: 28px;
}

.hero-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 24px;
	box-shadow: var(--shadow);
}

.hero-top {
	position: relative;
	padding: 34px 32px 26px;
	background:
		radial-gradient(circle at top right, rgba(212, 5, 17, 0.08), transparent 220px),
		linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}

.hero-top::after {
	content: "";
	position: absolute;
	left: 0;
	right: 16px;
	bottom: 0;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--accent), rgba(220, 0, 60, 0));
}

.hero-bottom {
	position: relative;
	padding: 0 32px;
	background: #fff;
	border-top: 1px solid #eceff2;
}

.hero-bottom h3 {
	text-align: end;
	color: #b2b2b2;
	font-size: 0.95rem;
	font-weight: 600;
}

.hero-bottom a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: width 0.25s ease;
}

.hero-bottom a:hover {
	color: var(--accent);
}

.hero-bottom a:hover::after {
	width: 100%;
}

h1 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0;
	color: var(--text);
	font-size: clamp(2.6rem, 2.6vw, 2.7rem);
	font-weight: 750;
	letter-spacing: -0.03em;
}

.hero-subtitle {
	max-width: 780px;
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 1.02rem;
}

/* ==============================
   Tabs
============================== */

.tabs {
	position: relative;
	display: inline-flex;
	gap: 6px;
	margin-top: 22px;
	padding: 6px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.tab-indicator {
	position: absolute;
	top: 6px;
	left: 0;
	z-index: 0;
	width: 0;
	height: calc(100% - 12px);
	background: linear-gradient(180deg, #fff1f2 0%, #ffe8ea 100%);
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px rgba(212, 5, 17, 0.14);
}

.tab {
	position: relative;
	z-index: 1;
	padding: 12px 16px;
	color: var(--muted);
	font-size: 0.95rem;
	font-weight: 700;
	background: transparent;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	transition:
		color 0.18s ease,
		transform 0.18s ease;
}

.tab.active {
	color: var(--accent);
	pointer-events: none;
}

.tab:hover {
	color: var(--text);
	background: #f7f8fa;
	transform: translateY(-1px);
}

.separator {
	width: 1px;
	background: linear-gradient(to bottom, transparent, var(--text), transparent);
	opacity: 0.5;
}

.tab-content {
	position: absolute;
	display: none;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease;
}

.tab-content.active {
	position: relative;
	display: block;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	animation: tabUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tabUp {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.985);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.tab-shell {
	padding: 28px 32px 34px;
}

/* ==============================
   Main content
============================== */

.content-surface {
	padding: 26px;
	background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
	border: 1px solid var(--border);
	border-radius: 22px;
	box-shadow: var(--shadow-soft);
}

.nav-section:not(:first-of-type) {
	margin-top: 40px;
}

.main-grid {
	display: block;
}

.section-header {
	display: inline-flex;
	align-items: center;
    margin-bottom: 6px;
	justify-content: space-between;
	width: 100%;
}

.section-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	padding: 6px 10px;
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--accent-soft);
	border-radius: 999px;
}

.section-header h2 {
	margin: 0 0 6px;
	font-size: 2rem;
	letter-spacing: -0.03em;
}

.section-header p {
	margin: 0;
	color: var(--muted);
	font-size: 0.97rem;
}

/* ==============================
   Panels / solution entries
============================== */

.panel-grid {
	display: grid;
	gap: 0;
}

.solution-entry {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	padding: 22px 0;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--border);
}

.solution-entry:last-of-type {
	border-bottom: none;
}

.solution-entry-main {
	min-width: 0;
	transition: transform 0.15s ease;
}

.solution-entry:hover .solution-entry-main {
	transform: translateX(4px);
}

.solution-entry-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 6px;
}

.solution-entry h3 {
	margin: 0;
	color: var(--text);
	font-size: 1.05rem;
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: -0.015em;
	transition: color 0.15s ease;
}

.solution-entry:hover h3 {
	color: var(--accent);
}

.solution-entry p {
	max-width: 720px;
	margin: 0;
	padding-left: 10px;
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.55;
}

.solution-label {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.solution-label::before {
	content: "/";
	margin-right: 8px;
	color: var(--border-strong, #cfd4dc);
}

.solution-arrow {
	color: var(--muted);
	font-size: 1.6rem;
	line-height: 1;
	transition:
		color 0.15s ease,
		transform 0.15s ease;
}

.solution-entry:hover .solution-arrow {
	color: var(--accent);
	transform: translateX(5px);
}

.solution-entry.secondary h3 {
	color: var(--muted);
}

.solution-entry.secondary:hover h3 {
	color: var(--text);
}

.solution-entry.secondary .solution-label {
	color: var(--muted);
}

/* Mobile */

@media (max-width: 680px) {
	.solution-entry {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 18px 0;
	}

	.solution-entry-head {
		flex-wrap: wrap;
	}

	.solution-arrow {
		display: none;
	}
}

/* ==============================
   Utility card
============================== */

.utility-card {
	overflow: hidden;
	background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
	border: 1px solid var(--border);
	border-radius: 20px;
	box-shadow: var(--shadow-soft);
}

.utility-card-header {
	padding: 22px 22px 18px;
	background:
		radial-gradient(circle at top right, rgba(212, 5, 17, 0.06), transparent 160px),
		linear-gradient(180deg, #fff 0%, #fff8f8 100%);
	border-bottom: 1px solid #eceff2;
}

.utility-label {
	display: inline-flex;
	margin-bottom: 8px;
	color: var(--accent);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.utility-card-header h2 {
	margin: 0 0 6px;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}

.utility-card-header p {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.utility-card-body {
	padding: 20px 22px 22px;
}

/* ==============================
   Files tab
============================== */

.search-wrap {
	position: relative;
	margin-bottom: 14px;
}

.search-wrap::before {
	content: "⌕";
	position: absolute;
	top: 50%;
	left: 14px;
	color: var(--muted);
	font-size: 1rem;
	pointer-events: none;
	transform: translateY(-50%);
}

#search {
	width: 100%;
	padding: 13px 14px 13px 40px;
	color: var(--text);
	font-size: 0.96rem;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 12px;
	transition:
		border-color 0.2s ease,
		background 0.2s ease,
		box-shadow 0.2s ease;
}

#search:focus {
	background: var(--surface);
	border-color: #d66c74;
	box-shadow: 0 0 0 4px rgba(212, 5, 17, 0.08);
}

.files-inline-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.files-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: var(--accent);
	font-size: 0.82rem;
	font-weight: 700;
	background: var(--accent-soft);
	border-radius: 999px;
}

.ftp-panel {
	overflow: hidden;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 16px;
}

#fileListContainer {
	max-height: 680px;
	overflow: auto;
	padding: 14px;
}

#fileList,
ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

li {
	position: relative;
	margin: 3px 0;
}

.node-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 7px 9px;
	border-radius: 10px;
	transition: background 0.18s ease;
}

.node-label:hover {
	background: #f1f3f5;
}

.folder > .node-label {
	color: var(--text);
	font-weight: 600;
	cursor: pointer;
}

.file > .node-label a {
	color: var(--text);
	text-decoration: none;
	text-wrap-mode: nowrap;
}

.file > .node-label a:hover {
	text-decoration: underline;
}

.nested {
	position: relative;
	display: none;
	margin-left: 18px;
	padding-left: 14px;
}

.nested.active {
	display: block;
}

.nested > li::before {
	content: "";
	position: absolute;
	top: -6px;
	bottom: -6px;
	left: -14px;
	width: 1px;
	background: var(--tree-line);
}

.nested > li:last-child::before,
.nested > li:only-child::before {
	height: 25px;
}

.nested > li::after {
	content: "";
	position: absolute;
	top: 18px;
	left: -14px;
	width: 12px;
	height: 1px;
	background: var(--tree-line);
}

.caret {
	display: inline-flex;
	flex: 0 0 16px;
	align-items: center;
	justify-content: center;
	width: 16px;
	color: var(--muted);
	transition:
		color 0.18s ease,
		transform 0.18s ease;
}

.caret::before {
	content: "▶";
	font-size: 0.7rem;
}

.caret-down::before {
	content: "▼";
}

.folder-icon,
.file-icon {
	flex: 0 0 18px;
	width: 18px;
	text-align: center;
}

.folder-icon::before {
	content: "📁";
}

.file-icon::before {
	content: "📄";
}

.file-name,
.folder-name {
	overflow-wrap: anywhere;
}

.hidden {
	display: none !important;
}

.copy-button {
	margin-left: 6px;
	padding: 4px 6px 7px;
	color: var(--accent);
	font-size: 0.92rem;
	background: rgba(220, 0, 50, 0.06);
	border: 1px solid rgba(220, 0, 50, 0.12);
	border-radius: 8px;
	cursor: pointer;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		border-color 0.18s ease;
}

.copy-button:hover {
	background: rgba(220, 0, 50, 0.12);
	border-color: rgba(220, 0, 50, 0.24);
}

.copied-msg {
	position: absolute;
	z-index: 999;
	padding: 6px 10px;
	color: #fff;
	font-size: 12px;
	white-space: nowrap;
	pointer-events: none;
	background: #111;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translateX(-50%) translateY(6px);
	transition: all 0.2s ease;
}

.copied-msg.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.helper-text {
	margin-top: 12px;
	color: var(--muted);
	font-size: 0.84rem;
}

/* ==============================
   FAQ tab
============================== */

.faq-search-wrap {
	position: relative;
	max-width: 520px;
}

.faq-search {
	width: 100%;
	padding: 14px 46px 14px 16px;
	color: var(--text);
	font-size: 0.96rem;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
	outline: none;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		background 0.18s ease;
}

.faq-search::placeholder {
	color: var(--muted);
}

.faq-search:focus {
	background: #fff;
	border-color: rgba(212, 5, 17, 0.35);
	box-shadow:
		0 0 0 4px rgba(212, 5, 17, 0.08),
		0 10px 28px rgba(17, 24, 39, 0.06);
}

.faq-search-icon {
	position: absolute;
	top: 47%;
	right: 14px;
	color: var(--muted);
	font-size: 1.1rem;
	pointer-events: none;
	transform: translateY(-50%);
	transition:
		color 0.18s ease,
		opacity 0.18s ease;
}

.faq-search:focus + .faq-search-icon {
	color: var(--accent);
	opacity: 1;
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.faq-item {
	overflow: hidden;
	background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.faq-item:hover {
	border-color: rgba(212, 5, 17, 0.22);
	box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
	transform: translateY(-1px);
}

.faq-question {
	position: relative;
	padding: 18px 22px;
	color: var(--text);
	font-size: 1rem;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
	transition:
		color 0.18s ease,
		background 0.18s ease;
}

.faq-question::-webkit-details-marker {
	display: none;
}

.faq-question::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 22px;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: translateY(-60%) rotate(135deg);
	transform-origin: center;
	transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] .faq-question {
	color: var(--accent);
	background: linear-gradient(180deg, #fff8f8 0%, #fffdfd 100%);
}

.faq-item[open] .faq-question::after {
	transform: translateY(-40%) rotate(45deg);
}

.faq-answer {
	overflow: hidden;
	border-top: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.faq-item[open] .faq-answer {
	border-top-color: rgba(212, 5, 17, 0.08);
}

.faq-answer-inner {
	overflow: hidden;
	padding: 0 22px;
	opacity: 0;
	transform: translateY(-6px);
	transition:
		opacity 0.25s ease,
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] .faq-answer-inner {
	padding: 16px 22px 20px;
	opacity: 1;
	transform: translateY(0);
}

.faq-answer p {
	margin: 0;
	color: var(--muted);
	font-size: 0.96rem;
	line-height: 1.7;
}

.faq-empty {
	margin-top: 18px;
	padding: 16px 18px;
	color: var(--muted);
	background: rgba(255, 250, 250, 0.7);
	border: 1px dashed rgba(212, 5, 17, 0.18);
	border-radius: 14px;
}

/* ==============================
   Responsive
============================== */

@media (max-width: 860px) {
	h1 {
		align-items: flex-start;
	}

	.dpd-logo {
		width: 118px;
	}

	.tab-shell {
		padding: 20px 18px 24px;
	}

	.hero-top,
	.hero-bottom {
		padding-left: 18px;
		padding-right: 18px;
	}

	.hero-top::after {
		left: 18px;
		right: 18px;
	}
}

@media (max-width: 700px) {
	.page {
		padding: 16px 14px 36px;
	}

	.content-surface {
		padding: 18px;
	}

	.tabs {
		width: 100%;
		justify-content: space-between;
	}

	.tab {
		flex: 1;
		text-align: center;
	}

	.solution-entry {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 20px;
	}

	.solution-entry-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.solution-arrow {
		justify-self: start;
	}
}
