:root {
  --ink: #101827;
  --muted: #5e6878;
  --line: #dfe5ec;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --navy: #0d1c32;
  --navy-2: #172b48;
  --teal: #13a6a6;
  --teal-dark: #087f81;
  --lime: #b6e24c;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 18px 45px rgba(13, 28, 50, .10);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 800px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; transform: translateY(-150%); background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(223,229,236,.8); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; letter-spacing: -.025em; font-size: 1.15rem; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--navy); background: linear-gradient(145deg, var(--lime), #dffb91); border-radius: 11px 16px 11px 16px; font-weight: 900; box-shadow: 0 7px 20px rgba(182,226,76,.28); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { text-decoration: none; color: #485365; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.site-nav a:hover, .site-nav a.active { color: var(--navy); background: var(--surface-soft); }
.nav-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 8px 12px; font-weight: 750; }

.hero { overflow: hidden; background: radial-gradient(circle at 78% 12%, rgba(19,166,166,.17), transparent 31%), linear-gradient(145deg, #f9fbfd 0%, #eef5f5 100%); padding: 96px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 72px; }
.hero-copy h1, .page-hero h1, .app-hero h1, .admin-header h1 { margin: 12px 0 20px; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.06em; color: var(--navy); }
.hero-copy > p { max-width: 690px; margin: 0; font-size: 1.18rem; color: var(--muted); }
.eyebrow { color: var(--teal-dark); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--navy); border-radius: 12px; color: white; background: var(--navy); text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(13,28,50,.16); background: var(--navy-2); }
.button-secondary { color: var(--navy); background: transparent; border-color: #bfc9d5; }
.button-secondary:hover { background: white; }
.button-small { min-height: 38px; padding: 8px 13px; border-radius: 10px; font-size: .88rem; }
.button-disabled { background: #9aa4b2; border-color: #9aa4b2; cursor: default; }
.button-disabled:hover { transform: none; box-shadow: none; background: #9aa4b2; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 38px; color: #465365; font-weight: 750; font-size: .9rem; }
.trust-row span::before { content: ""; width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--teal); margin-right: 9px; }
.hero-panel { min-height: 510px; position: relative; border-radius: 44px; background: linear-gradient(150deg, var(--navy), #173a58); box-shadow: 0 40px 80px rgba(13,28,50,.23); overflow: hidden; }
.hero-panel::before, .hero-panel::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); }
.hero-panel::before { width: 330px; height: 330px; right: -100px; top: -70px; background: rgba(19,166,166,.28); }
.hero-panel::after { width: 260px; height: 260px; left: -90px; bottom: -70px; background: rgba(182,226,76,.14); }
.hero-orb { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 180px; height: 180px; display: grid; place-items: center; border-radius: 42% 58% 55% 45%; background: linear-gradient(145deg, var(--lime), #ecffbd); box-shadow: 0 28px 60px rgba(0,0,0,.22); }
.hero-orb span { font-size: 6.5rem; font-weight: 950; color: var(--navy); line-height: 1; }
.floating-card { position: absolute; z-index: 2; display: flex; flex-direction: column; min-width: 190px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; color: white; background: rgba(255,255,255,.10); backdrop-filter: blur(12px); box-shadow: 0 18px 35px rgba(0,0,0,.14); }
.floating-card strong { font-size: 1.02rem; }
.floating-card span { color: #cbd7e5; font-size: .84rem; }
.fc-one { left: 28px; top: 36px; transform: rotate(-3deg); }
.fc-two { right: 26px; top: 128px; transform: rotate(3deg); }
.fc-three { left: 48px; bottom: 42px; transform: rotate(2deg); }

.section { padding: 88px 0; }
.section-muted { background: var(--surface-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-heading h2, .callout h2, .prose-card h2, .info-card h2, .form-card h2, .value-card h2, .contact-card h2 { margin: 7px 0 0; color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -.035em; }
.text-link { color: var(--teal-dark); text-decoration: none; font-weight: 850; }
.text-link:hover { text-decoration: underline; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.app-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 30px rgba(13,28,50,.06); transition: transform .18s ease, box-shadow .18s ease; }
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.app-card-image { aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg,#eaf5f4,#f7f9fb); }
.app-card-image img { width: 100%; height: 100%; object-fit: cover; }
.app-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.app-card h3 { margin: 14px 0 5px; color: var(--navy); font-size: 1.55rem; letter-spacing: -.035em; }
.app-card h3 a { text-decoration: none; }
.app-card p { margin: 8px 0; color: var(--muted); }
.app-card .tagline { color: var(--ink); font-weight: 800; }
.app-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; color: #29425e; background: #eaf0f6; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; }
.three-column { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.value-card { padding: 30px; border-radius: var(--radius); background: white; border: 1px solid var(--line); }
.value-card p { margin-bottom: 0; color: var(--muted); }
.value-number { font-size: .85rem; color: var(--teal-dark); font-weight: 900; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px; border-radius: 30px; color: white; background: linear-gradient(135deg, var(--navy), #17445d); box-shadow: var(--shadow); }
.callout h2 { color: white; max-width: 760px; }
.callout p { color: #c9d6e2; max-width: 760px; }
.callout .eyebrow { color: var(--lime); }
.callout .button { background: var(--lime); border-color: var(--lime); color: var(--navy); white-space: nowrap; }

.page-hero { padding: 92px 0; color: white; background: radial-gradient(circle at 80% 20%, rgba(19,166,166,.26), transparent 26%), var(--navy); }
.page-hero.compact { padding: 70px 0; }
.page-hero h1 { color: white; max-width: 960px; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.page-hero p { max-width: 760px; color: #c7d3df; font-size: 1.13rem; }
.page-hero .eyebrow { color: var(--lime); }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--teal-dark); font-weight: 850; text-decoration: none; }
.page-hero .back-link, .admin-header .back-link { color: #d7e3ed; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: white; color: #4f5c6d; font-weight: 800; cursor: pointer; }
.filter-button.active, .filter-button:hover { background: var(--navy); border-color: var(--navy); color: white; }
.app-card.is-hidden { display: none; }

.app-hero { padding: 82px 0; background: linear-gradient(150deg,#f7fafc,#edf5f4); }
.app-hero-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 70px; }
.app-hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.detail-meta { justify-content: flex-start; margin-top: 10px; }
.app-tagline-large { margin: 0 0 15px; color: var(--teal-dark); font-size: 1.35rem; font-weight: 850; }
.lead { color: var(--muted); font-size: 1.12rem; }
.detail-image { overflow: hidden; aspect-ratio: 4/3; border-radius: 28px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.prose-card, .info-card, .form-card, .quote-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 34px rgba(13,28,50,.07); }
.prose-card { padding: 42px; }
.prose-card p { color: var(--muted); font-size: 1.03rem; }
.prose-card h2 + p { margin-top: 12px; }
.prose-card h2:not(:first-child) { margin-top: 38px; }
.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.feature-list li { display: flex; gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface-soft); font-weight: 700; }
.feature-list span { color: var(--teal-dark); }
.info-card { position: sticky; top: 100px; padding: 28px; }
.info-card dl { margin: 20px 0 24px; }
.info-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info-card dt { color: var(--muted); }
.info-card dd { margin: 0; font-weight: 800; text-align: right; }
.quote-card { padding: 38px; background: var(--navy); color: white; }
.quote-card > span { color: var(--lime); font-size: 5rem; line-height: .7; }
.quote-card p { font-size: 1.7rem; font-weight: 850; line-height: 1.25; }

.support-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 34px; align-items: start; }
.form-card { padding: 38px; }
.stacked-form { display: grid; gap: 18px; }
.stacked-form label, .admin-form label { display: grid; gap: 7px; font-weight: 800; color: #344054; }
input, textarea, select { width: 100%; border: 1px solid #cbd3dd; border-radius: 10px; padding: 11px 13px; color: var(--ink); background: white; outline: none; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(19,166,166,.12); }
.form-error { margin: 18px 0; padding: 14px 16px; border-radius: 10px; color: #7a271a; background: #fef3f2; border: 1px solid #fecdca; }
.success-panel { text-align: center; padding: 20px; }
.success-panel p { color: var(--muted); }
.support-app-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 13px; margin-bottom: 18px; background: var(--surface-soft); }
.small-note, .field-note, .label-help { color: var(--muted); font-size: .88rem; font-weight: 500; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.contact-card h2 a { color: var(--teal-dark); }
.legal-copy h2 { font-size: 1.5rem; }
.empty-state { text-align: center; max-width: 680px; padding: 70px 30px; }
.empty-state h1, .empty-state h2 { color: var(--navy); }
.error-code { display: block; color: var(--teal); font-size: 6rem; font-weight: 950; line-height: 1; }
.error-detail { overflow-x: auto; padding: 14px; text-align: left; background: #f7f7f7; border-radius: 10px; }

.admin-header { padding: 62px 0; color: white; background: var(--navy); }
.admin-header.compact-admin { padding: 48px 0; }
.admin-header h1 { color: white; font-size: clamp(2.5rem,5vw,4.2rem); }
.admin-header p { color: #c8d4df; }
.admin-header .eyebrow { color: var(--lime); }
.admin-header-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.admin-actions { display: flex; align-items: center; gap: 10px; }
.admin-actions form { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 48px; }
.stat-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.stat-card span { display: block; color: var(--muted); font-weight: 750; }
.stat-card strong { display: block; color: var(--navy); font-size: 2.3rem; line-height: 1.2; }
.admin-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin: 38px 0 16px; }
.admin-section-heading h2 { margin: 0; font-size: 1.8rem; color: var(--navy); }
.admin-section-heading p { margin: 4px 0 0; color: var(--muted); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.admin-table th, .admin-table td { padding: 15px 17px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { background: var(--surface-soft); color: #485365; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-table tr:last-child td { border-bottom: 0; }
.table-app { display: flex; align-items: center; gap: 12px; }
.table-app img { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--surface-soft); }
.table-app span { display: block; color: var(--muted); font-size: .82rem; }
.row-actions { display: flex; align-items: center; gap: 12px; }
.row-actions a, .danger-link { border: 0; padding: 0; color: var(--teal-dark); background: transparent; text-decoration: none; font-weight: 800; cursor: pointer; }
.danger-link { color: var(--danger); }
.support-preview-list { display: grid; gap: 12px; }
.support-preview-list article { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.support-preview-list strong { display: block; margin-top: 8px; }
.support-preview-list p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.support-preview-list a { color: var(--teal-dark); font-weight: 800; white-space: nowrap; }
.empty-admin { padding: 30px; color: var(--muted); background: var(--surface-soft); border-radius: 12px; }
.login-card { max-width: 520px; }
.admin-login-section { min-height: 68vh; background: var(--surface-soft); }
.wide-form-card { max-width: 980px; }
.admin-form { display: grid; gap: 28px; }
.form-section { display: grid; gap: 17px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.form-section h2 { margin: 0; font-size: 1.5rem; }
.field-grid { display: grid; gap: 16px; }
.field-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.field-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.current-image { display: inline-flex; width: max-content; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.current-image img { width: 100px; height: 65px; object-fit: cover; border-radius: 8px; }
.current-image span { color: var(--muted); font-size: .85rem; }
.check-section { grid-template-columns: repeat(2,minmax(0,1fr)); }
.check-label { grid-template-columns: auto 1fr !important; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.check-label input { width: 20px; height: 20px; margin-top: 2px; }
.check-label small { display: block; color: var(--muted); font-weight: 500; }
.form-footer { display: flex; justify-content: flex-end; gap: 12px; }
.support-inbox { display: grid; gap: 18px; }
.support-message { border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; box-shadow: 0 10px 25px rgba(13,28,50,.06); }
.support-message header, .support-message footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; }
.support-message header { border-bottom: 1px solid var(--line); }
.support-message header h2 { margin: 8px 0 0; color: var(--navy); }
.support-message time { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.sender-row { display: flex; gap: 12px; padding: 18px 22px 0; }
.sender-row a { color: var(--teal-dark); }
.message-body { white-space: pre-wrap; padding: 0 22px 18px; color: #344054; }
.support-message footer { border-top: 1px solid var(--line); background: var(--surface-soft); }
.support-message footer form { display: flex; align-items: end; gap: 10px; }
.support-message footer label { display: grid; gap: 3px; font-size: .8rem; font-weight: 800; }
.support-message footer select { min-width: 145px; padding: 8px 10px; }

.flash { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-weight: 750; }
.flash-success { color: var(--success); background: #ecfdf3; border: 1px solid #abefc6; }
.flash-error { color: #7a271a; background: #fef3f2; border: 1px solid #fecdca; }

.site-footer { padding: 58px 0 24px; color: #c7d1dd; background: #091525; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr 1fr; gap: 50px; }
.footer-grid h2 { color: white; font-size: .95rem; }
.footer-grid a:not(.brand) { display: block; width: fit-content; color: #c7d1dd; text-decoration: none; margin: 9px 0; }
.footer-grid a:hover { color: white; }
.footer-brand { color: white; }
.footer-grid p { max-width: 430px; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

@media (max-width: 980px) {
  .hero-grid, .app-hero-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 430px; }
  .app-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-layout, .support-grid { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field-grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 76px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .hero { padding: 68px 0; }
  .hero-copy h1 { font-size: 3.25rem; }
  .hero-panel { min-height: 360px; border-radius: 28px; }
  .hero-orb { width: 135px; height: 135px; }
  .hero-orb span { font-size: 5rem; }
  .floating-card { min-width: 150px; padding: 12px; }
  .fc-one { left: 14px; top: 22px; }
  .fc-two { right: 12px; top: 105px; }
  .fc-three { left: 20px; bottom: 25px; }
  .section { padding: 64px 0; }
  .section-heading, .callout, .contact-card, .admin-header-row, .admin-section-heading { align-items: flex-start; flex-direction: column; }
  .app-grid, .three-column, .footer-grid, .field-grid.two, .check-section { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .callout, .prose-card, .form-card { padding: 28px; }
  .app-hero { padding: 60px 0; }
  .app-hero h1 { font-size: 3.4rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .support-message header, .support-message footer { align-items: flex-start; flex-direction: column; }
  .support-message footer form { width: 100%; align-items: stretch; flex-direction: column; }
  .sender-row { flex-direction: column; gap: 2px; }
}

@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero-actions, .form-footer, .admin-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-actions .button, .form-footer .button, .admin-actions .button { width: 100%; }
  .card-actions { align-items: flex-start; flex-direction: column; }
}

.catalog-controls { display: grid; gap: 18px; margin-bottom: 30px; }
.app-search-label { display: grid; gap: 7px; max-width: 560px; color: #344054; font-weight: 800; }
.app-search { min-height: 48px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235e6878' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 14px center; padding-left: 44px; }
