/*!
 * Copyright (c) 2026 Daki.cc — Niclas Specht. All rights reserved.
 * Proprietary and confidential.
 */

/* Reference-inspired cards, isolated from the existing mainpage design. */
.why-section { --home-border: #343039; --home-surface: #181818; scroll-margin-top: 110px; }
.why-section .feature-card h3 { font-family: 'Poppins', sans-serif; }
.why-section :focus-visible { outline: 2px solid #d48ae6; outline-offset: 5px; }
.why-section .card-bottom-link, .why-section .stack-more { text-decoration: none; }
.why-section .icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.why-section .icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.why-section .status-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #a68faf; box-shadow: 0 0 6px #a432c040; }
.why-section .feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, 230px); grid-template-areas: 'panel panel panel free free free' 'panel panel panel deploy deploy deploy' 'hardware hardware files files support support' 'hardware hardware protection protection network network'; gap: 17px; }
.why-section .feature-card { position: relative; isolation: isolate; overflow: hidden; min-width: 0; border: 1px solid var(--home-border); background: radial-gradient(ellipse at var(--glow-x, 75%) var(--glow-y, 50%), rgba(118, 9, 145, var(--glow-opacity, .07)), transparent 70%), var(--home-surface); border-radius: 13px; padding: 24px; transition: border-color .25s, box-shadow .25s; }
.why-section .feature-card:hover { border-color: #855493; box-shadow: 0 8px 26px #00000020; }
.why-section .feature-card::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 100%), #a432c016, transparent 80%); opacity: 0; transition: opacity .3s; }
.why-section .feature-card:hover::before { opacity: 1; }
.why-section .feature-card h3 { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; letter-spacing: -.25px; margin: 0 0 14px; color: #f2edf5; }
.why-section .feature-card h3 .icon { width: 17px; height: 17px; color: #c48cdb; }
.why-section .feature-card > p { position: relative; z-index: 2; font-size: 14px; color: #bdb5c2; line-height: 1.65; margin: 0; }
.why-section .feature-card > p strong { color: #e8deed; font-weight: 500; }
.why-section .feature-panel { grid-area: panel; --glow-x: 100%; --glow-y: 0%; --glow-opacity: .12; border-color: #684376; }
.why-section .feature-free { grid-area: free; --glow-x: 100%; --glow-y: 100%; --glow-opacity: .13; }
.why-section .feature-deploy { grid-area: deploy; --glow-x: 0%; --glow-y: 50%; --glow-opacity: .05; }
.why-section .feature-hardware { grid-area: hardware; --glow-x: 50%; --glow-y: 55%; --glow-opacity: .12; }
.why-section .feature-files { grid-area: files; --glow-x: 0%; --glow-y: 100%; }
.why-section .feature-support { grid-area: support; --glow-x: 100%; --glow-y: 20%; }
.why-section .feature-protection { grid-area: protection; --glow-x: 50%; --glow-y: 100%; }
.why-section .feature-network { grid-area: network; --glow-x: 100%; --glow-y: 100%; --glow-opacity: .1; }
.why-section .feature-panel > p { max-width: 390px; }
.why-section .panel-tools { position: absolute; bottom: 26px; left: 24px; z-index: 3; }
.why-section .feature-checklist { padding: 0; margin: 0; list-style: none; font-size: 11px; line-height: 2.2; color: #d8cadd; }
.why-section .feature-checklist .icon { width: 14px; height: 14px; margin-right: 5px; color: #c38ad8; }
.why-section .panel-splits { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; padding-top: 11px; border-top: 1px solid #a432c02b; color: #c99bd9; font-size: 10px; }
.why-section .panel-splits .icon { width: 13px; height: 13px; }
.why-section .dashboard-art { position: absolute; top: 144px; left: 40%; width: 440px; border: 1px solid #785386; border-radius: 10px 0 0 0; background: #131215; box-shadow: -12px -12px 45px #7609910c; transform: rotate(-3deg); transform-origin: bottom left; opacity: .95; }
.why-section .dashboard-top { display: flex; gap: 8px; align-items: center; height: 40px; padding: 0 14px; border-bottom: 1px solid #302a35; font-size: 10px; color: #c8b9d0; }
.why-section .dashboard-top img { width: 18px; height: 18px; }
.why-section .demo-running { margin-left: auto; display: flex; gap: 5px; align-items: center; font-size: 8px; color: #b8a8bc; }
.why-section .dashboard-body { display: flex; }
.why-section .dashboard-rail { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 37px; flex-shrink: 0; padding-top: 14px; border-right: 1px solid #ffffff07; color: #65596f; }
.why-section .dashboard-rail .icon { width: 13px; height: 13px; }
.why-section .dashboard-rail .icon:first-child { color: #bc72d3; }
.why-section .dashboard-main { flex: 1; padding: 12px; }
.why-section .dashboard-tabs { display: flex; gap: 18px; font-size: 9px; color: #91809e; padding-bottom: 13px; }
.why-section .dashboard-tabs span:first-child { color: #ccb1d5; }
.why-section .dashboard-metrics { display: flex; gap: 7px; }
.why-section .dashboard-metrics > div { width: 50%; font-size: 7px; color: #95839f; padding: 10px; background: #1b1720; border: 1px solid #33273e; border-radius: 4px; }
.why-section .dashboard-metrics b { display: block; color: #d5bedf; font-size: 20px; font-weight: 400; margin: 5px 0; }
.why-section .dashboard-metrics b span { font-size: 8px; }
.why-section .dashboard-metrics i { display: block; height: 2px; background: linear-gradient(90deg, #ab60bf 32%, #2b2333 32%); }
.why-section .dashboard-metrics > div:last-child i { background: linear-gradient(90deg, #ab60bf 54%, #2b2333 54%); }
.why-section .dashboard-console { display: flex; flex-direction: column; gap: 9px; color: #b7a9c1; font: 8px ui-monospace, monospace; margin-top: 15px; padding: 11px 0 14px; }
.why-section .dashboard-console b { color: #a66bbb; font-weight: 400; }
.why-section .dashboard-console em { color: #b887c6; font-style: normal; }
.why-section .console-prompt { color: #bd8dd0; }
.why-section .console-prompt i { display: inline-block; height: 7px; width: 3px; background: #9565a6; }
.why-section .art-caption { display: block; padding: 0 12px 12px; color: #594d63; font: 6px ui-monospace, monospace; letter-spacing: 1px; text-align: right; }
.why-section .feature-deploy > p { max-width: 44%; }
.why-section .deploy-art { position: absolute; top: 50px; left: 52%; right: 24px; }
.why-section .code-preview { display: flex; flex-direction: column; gap: 13px; padding: 21px 0; border-top: 1px solid #ffffff08; border-bottom: 1px solid #ffffff08; font: 10px ui-monospace, monospace; white-space: nowrap; color: #a7a0ad; }
.why-section .code-preview i { display: inline-block; color: #83708d; font-style: normal; margin-right: 12px; }
.why-section .code-preview b { font-weight: 400; color: #c07bd5; }
.why-section .code-preview em { font-style: normal; color: #d0a596; }
.why-section .code-comment { color: #6c626f; }
.why-section .deploy-line { display: flex; align-items: center; gap: 6px; color: #b59cc0; font: 9px ui-monospace, monospace; margin-top: 14px; }
.why-section .deploy-line .icon { width: 12px; height: 12px; }
.why-section .chip-art { position: absolute; top: 114px; left: 0; right: 0; height: 268px; }
.why-section .chip-art > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.why-section .hardware-specs { position: absolute; bottom: 66px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #c9aed3; font: 10px ui-monospace, monospace; }
.why-section .hardware-specs span + span { border-left: 1px solid #614569; padding-left: 14px; }
.why-section .card-bottom-link { position: absolute; bottom: 23px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; background: transparent; color: #cc96de; font: 11px 'Work Sans', sans-serif; }
.why-section .card-bottom-link .icon { width: 14px; height: 14px; }
.why-section .card-bottom-link:hover { color: #e5baef; }
.why-section .files-art { position: absolute; left: 24px; right: -14px; bottom: -12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; mask-image: linear-gradient(black 75%, transparent); }
.why-section .file-tile { height: 49px; border: 1px solid #403447; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #141415; color: #9b87a5; }
.why-section .file-tile .icon { width: 21px; height: 21px; }
.why-section .file-tile span { font: 7px ui-monospace, monospace; color: #6c6271; }
.why-section .file-tile:nth-child(4) { color: #b388bf; border-color: #514259; }
.why-section .chat-art { position: absolute; bottom: 49px; left: 24px; right: 24px; }
.why-section .chat-bubble { border: 1px solid #65416f; border-radius: 7px 7px 7px 1px; background: #211a25; color: #c2abc9; padding: 6px 8px; font-size: 9px; line-height: 1.5; }
.why-section .chat-question { margin-left: 48px; margin-bottom: 6px; color: #b5a8ba; background: #1b191d; border-color: #3d3343; border-radius: 7px 7px 1px 7px; }
.why-section .chat-answer { display: flex; align-items: flex-start; gap: 7px; }
.why-section .chat-answer > img { width: 22px; height: 22px; margin-top: 4px; }
.why-section .chat-typing { display: flex; gap: 3px; margin-top: 5px; }
.why-section .chat-typing b { width: 3px; height: 3px; border-radius: 50%; background: #9f77ac; }
.why-section .shield-art { position: absolute; bottom: 0; left: 0; right: 0; height: 104px; color: #9b72ad; }
.why-section .shield-art > svg { position: relative; width: 100%; height: 100%; }
.why-section .shield-check { stroke: #b984c7; }
.why-section .shield-grid { position: absolute; inset: -20px 0 0; background-image: linear-gradient(#ffffff03 1px, transparent 1px), linear-gradient(90deg, #ffffff03 1px, transparent 1px); background-size: 16px 16px; mask-image: radial-gradient(ellipse, black, transparent 73%); }
.why-section .network-art { position: absolute; bottom: -32px; left: -7px; right: -7px; height: 150px; color: #796183; }
.why-section .network-art > svg { width: 100%; height: 100%; }
.why-section .network-center { fill: #c883d8; stroke: none; }
.why-section .network-center-ring { fill: #a432c015; stroke: #a432c055; }
.why-section .network-pin { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; border: 1px solid #9861ac; padding: 7px 10px; border-radius: 5px; background: #281c30; color: #e0b9ed; font: 10px ui-monospace, monospace; white-space: nowrap; }
.why-section .network-pin .status-dot { background: #e2a1f3; box-shadow: 0 0 8px #c568df60; }
.why-section .stack-strip { display: flex; align-items: center; gap: 30px; padding: 36px 0; margin-top: 19px; border-bottom: 1px solid #ffffff0b; }
.why-section .stack-caption { color: #6d6672; font-size: 8px; line-height: 1.6; letter-spacing: 1.2px; white-space: nowrap; }
.why-section .stack-caption strong { color: #a9a0af; font-weight: 500; }
.why-section .stack-logos { display: flex; flex: 1; justify-content: space-around; gap: 15px; }
.why-section .stack-logos > span { display: flex; align-items: center; gap: 7px; color: #c0b7c8; font-size: 12px; white-space: nowrap; }
.why-section .stack-logos img { width: 23px; height: 23px; object-fit: contain; filter: grayscale(1) brightness(1.1); opacity: .8; transition: filter .2s, opacity .2s; }
.why-section .stack-logos > span:hover img { filter: grayscale(1) brightness(1.2); opacity: 1; }
.why-section .stack-more { display: flex; align-items: center; gap: 5px; color: #9c8ca4; font-size: 9px; white-space: nowrap; }
.why-section .stack-more:hover { color: #d8b0e3; }
.why-section .stack-more .icon { width: 13px; height: 13px; }

/* Free hosting gets the only resource pills in the grid. */
.why-section .feature-free h3 a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.why-section .feature-free h3 a:hover { color: #d796ec; }
.why-section .feature-free h3 a .icon { width: 14px; height: 14px; }
.why-section .feature-free > p { max-width: calc(100% - 140px); }
.why-section .free-specs { position: absolute; bottom: 25px; left: 24px; right: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.why-section .free-specs span { padding: 5px 9px; border: 1px solid #694379; border-radius: 5px; background: #a432c008; color: #d7b6e2; font-size: 10px; line-height: 1.4; }
.why-section .free-price { position: absolute; top: 42px; right: 28px; color: #cc9bdd; font: 400 80px/1 'Work Sans', sans-serif; letter-spacing: -5px; text-shadow: 0 0 28px #a432c015; }
.why-section .free-price span { display: block; margin-top: 12px; color: #a78aaf; font: 8px ui-monospace, monospace; letter-spacing: 1.2px; text-align: center; }

/* Visual movement is limited to a few pixels and respects reduced motion. */
.why-section .dashboard-art, .why-section .free-price, .why-section .deploy-art,
.why-section .chip-art img, .why-section .files-art, .why-section .chat-answer,
.why-section .shield-art > svg, .why-section .network-art > svg { transition: transform .3s ease; }
@media (min-width: 768px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .why-section .feature-panel:hover .dashboard-art { transform: rotate(-3deg) translateY(-3px); }
    .why-section .feature-free:hover .free-price,
    .why-section .feature-deploy:hover .deploy-art,
    .why-section .feature-hardware:hover .chip-art img,
    .why-section .feature-support:hover .chat-answer { transform: translateY(-2px); }
    .why-section .feature-files:hover .files-art,
    .why-section .feature-protection:hover .shield-art > svg,
    .why-section .feature-network:hover .network-art > svg { transform: translateY(-3px); }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .why-section .dashboard-art { left: 45%; width: 410px; }
}

@media (max-width: 1199px) {
    .why-section .feature-card { padding: 22px; }
    .why-section .feature-card h3 { font-size: 14px; }
    .why-section .feature-card > p { font-size: 13px; }
    .why-section .feature-panel > p { max-width: 340px; }
    .why-section .dashboard-art { left: 48%; top: 154px; width: 390px; }
    .why-section .panel-tools { left: 22px; }
    .why-section .feature-checklist { font-size: 10px; }
    .why-section .card-bottom-link, .why-section .chat-art { left: 22px; right: 22px; }
    .why-section .feature-deploy > p { max-width: 45%; }
    .why-section .deploy-art { top: 60px; left: 53%; right: 18px; }
    .why-section .code-preview { font-size: 9px; }
    .why-section .free-price { right: 22px; font-size: 74px; }
    .why-section .free-specs { left: 22px; right: 22px; }
    .why-section .hardware-specs { font-size: 9px; gap: 10px; }
    .why-section .hardware-specs span + span { padding-left: 10px; }
    .why-section .stack-strip { gap: 20px; }
    .why-section .stack-logos { gap: 10px; }
    .why-section .stack-logos > span { font-size: 10px; }
}

/* Tablet: retain the two large anchors, while the other cards pair up. */
@media (max-width: 991px) {
    .why-section .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: none; grid-template-rows: none; grid-auto-rows: auto; }
    .why-section .feature-card { grid-area: auto; min-height: 270px; padding: 24px; }
    .why-section .feature-card h3 { font-size: 15px; }
    .why-section .feature-card > p { font-size: 13px; }
    .why-section .feature-panel { grid-column: span 2; min-height: 400px; }
    .why-section .feature-panel > p { max-width: 350px; }
    .why-section .dashboard-art { left: 43%; top: 132px; width: 440px; }
    .why-section .panel-tools { left: 24px; }
    .why-section .feature-checklist { font-size: 11px; }
    .why-section .feature-free, .why-section .feature-deploy { min-height: 290px; }
    .why-section .feature-free > p { max-width: none; }
    .why-section .free-price { top: 24px; right: 24px; font-size: 40px; letter-spacing: -2px; }
    .why-section .free-price span { display: none; }
    .why-section .free-specs { left: 24px; right: 24px; }
    .why-section .free-specs span { font-size: 9px; }
    .why-section .feature-deploy { display: flex; flex-direction: column; }
    .why-section .feature-deploy > p { max-width: none; }
    .why-section .deploy-art { position: static; margin-top: auto; padding-top: 22px; }
    .why-section .code-preview { font-size: 10px; padding: 16px 0; gap: 10px; }
    .why-section .feature-hardware { grid-column: span 2; min-height: 270px; }
    .why-section .feature-hardware > p { max-width: 43%; }
    .why-section .chip-art { top: 16px; left: 48%; right: 8px; height: 220px; }
    .why-section .hardware-specs { bottom: 100px; left: 24px; right: auto; justify-content: flex-start; }
    .why-section .card-bottom-link, .why-section .chat-art { left: 24px; right: 24px; }
    .why-section .files-art { left: 24px; }
    .why-section .file-tile { height: 59px; }
    .why-section .chat-art { bottom: 52px; }
    .why-section .chat-bubble { font-size: 10px; padding: 8px; }
    .why-section .shield-art { height: 130px; }
    .why-section .network-art { height: 170px; }
    .why-section .stack-strip { flex-wrap: wrap; gap: 20px; }
    .why-section .stack-logos { flex-wrap: wrap; gap: 15px 20px; }
    .why-section .stack-logos > span { font-size: 11px; }
}

/* Mobile: natural-height panel content, a visible preview, and one column. */
@media (max-width: 767.98px) {
    .why-section .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .why-section .feature-card { grid-column: auto; min-height: 260px; padding: 23px; }
    .why-section .feature-panel { min-height: 0; }
    .why-section .feature-panel > p { max-width: none; }
    .why-section .panel-tools { position: relative; left: auto; bottom: auto; margin-top: 16px; }
    .why-section .feature-checklist { font-size: 10px; line-height: 2; }
    .why-section .panel-splits { margin-top: 8px; padding-top: 8px; }
    .why-section .dashboard-art { position: relative; left: auto; top: auto; width: calc(100% + 34px); height: 200px; overflow: hidden; margin: 24px 0 -24px; transform: rotate(-2deg); transform-origin: bottom left; }
    .why-section .dashboard-top { height: 35px; font-size: 9px; }
    .why-section .dashboard-main { padding: 10px; }
    .why-section .dashboard-tabs { font-size: 8px; gap: 14px; }
    .why-section .dashboard-metrics b { font-size: 18px; }
    .why-section .dashboard-console { font-size: 7px; gap: 6px; margin-top: 10px; }
    .why-section .feature-free { min-height: 250px; }
    .why-section .free-price { top: 22px; right: 23px; font-size: 40px; }
    .why-section .free-specs { bottom: 24px; left: 23px; right: 23px; }
    .why-section .feature-deploy { min-height: 280px; }
    .why-section .code-preview { font-size: 11px; padding: 18px 0; }
    .why-section .deploy-line { font-size: 10px; }
    .why-section .feature-hardware { min-height: 350px; }
    .why-section .feature-hardware > p { max-width: none; }
    .why-section .chip-art { top: 103px; left: 0; right: 0; height: 190px; }
    .why-section .hardware-specs { bottom: 58px; left: 23px; right: 23px; justify-content: center; }
    .why-section .card-bottom-link, .why-section .chat-art { left: 23px; right: 23px; }
    .why-section .files-art { left: 23px; }
    .why-section .file-tile { height: 55px; }
    .why-section .chat-bubble { font-size: 10px; }
    .why-section .feature-protection, .why-section .feature-network { min-height: 280px; }
    .why-section .shield-art { height: 138px; }
    .why-section .network-art { height: 180px; }
    .why-section .stack-strip { gap: 20px; padding: 27px 0; }
    .why-section .stack-caption { display: none; }
    .why-section .stack-logos { justify-content: flex-start; gap: 20px; }
    .why-section .stack-logos > span { font-size: 11px; }
    .why-section .stack-logos img { width: 20px; height: 20px; }
    .why-section .stack-more { align-self: flex-end; margin-bottom: 5px; }
}
@media (max-width: 359px) {
    .why-section .feature-card h3 { font-size: 14px; }
    .why-section .free-specs span { padding: 5px 7px; font-size: 9px; }
    .why-section .feature-free { min-height: 265px; }
    .why-section .feature-free h3 { max-width: calc(100% - 55px); }
    .why-section .hardware-specs { font-size: 9px; gap: 9px; }
    .why-section .hardware-specs span + span { padding-left: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .why-section *, .why-section *::before, .why-section *::after { animation: none !important; transition: none !important; }
}
