/* 那智資訊工作室 — 企業官網樣式 */
:root {
  --color-bg: #0b1220;
  --color-surface: #111827;
  --color-surface-2: #1e293b;
  --color-border: rgba(148, 163, 184, 0.25);
  --color-text: #e2e8f0;
  --color-muted: #94a3b8;
  --color-accent: #38bdf8;
  --color-accent-2: #818cf8;
  --font-sans: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --header-h: 5.25rem;
  --container: min(1120px, 100% - 2.5rem);
  --focus: 0 0 0 3px rgba(56, 189, 248, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(129, 140, 248, 0.1), transparent 50%),
    var(--color-bg);
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #7dd3fc;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.5rem 1rem;
  background: var(--color-surface-2);
  color: var(--color-text);
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.max-w-prose {
  max-width: 42rem;
}

.narrow {
  max-width: 36rem;
  margin-inline: auto;
}

.center {
  text-align: center;
}

.mb-lg {
  margin-bottom: 1.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.lang-switcher-btn:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

.lang-switcher-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.lang-switcher.is-open .lang-switcher-btn {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
}

.lang-switcher-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 1200;
  min-width: 10.5rem;
  padding: 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.lang-switcher-menu[hidden] {
  display: none !important;
}

.lang-switcher-item {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switcher-item:hover {
  color: var(--color-text);
  background: rgba(148, 163, 184, 0.12);
  text-decoration: none;
}

.lang-switcher-item.is-active {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.18);
  font-weight: 600;
}

.legal-standalone-toolbar {
  max-width: 42rem;
  margin: 0 auto 1rem;
  padding: 0 1rem;
  display: flex;
  justify-content: flex-end;
}

.legal-standalone-page .lang-switcher-btn {
  background: #fff;
  border-color: #e2e8f0;
  color: #334155;
}

.legal-standalone-page .lang-switcher-menu {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.legal-standalone-page .lang-switcher-item {
  color: #64748b;
}

.legal-standalone-page .lang-switcher-item.is-active {
  color: #0f172a;
  background: #e2e8f0;
}

@media (max-width: 860px) {
  .header-inner {
    row-gap: 0.5rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-nav {
    margin-left: 0;
  }

  .header-actions {
    margin-left: auto;
    flex-shrink: 0;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.brand:hover .brand-text {
  color: #fff;
}

.brand-logo {
  display: block;
  height: auto;
  width: auto;
  max-height: 72px;
  max-width: min(280px, 42vw);
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .brand-logo {
    max-height: 56px;
    max-width: min(200px, 38vw);
  }

  .brand-text {
    font-size: 1.05rem;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    max-height: 48px;
    max-width: min(160px, 36vw);
  }
}

.footer-brand-name {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  border-radius: 1px;
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-text);
  text-decoration: none;
}

.nav-list a.nav-cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
}

.nav-list a.nav-cta:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(129, 140, 248, 0.35));
  color: #fff;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  /*
   * 不用 position:fixed（在 sticky 的 .site-header 內會失效）；
   * 用 absolute 浮在頁首下方，不佔文件流高度，避免整頁被往下推。
   */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 0 1.25rem;
    border-top: 0 solid var(--color-border);
    background: rgba(11, 18, 32, 0.97);
    box-shadow: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s, padding 0.2s ease,
      border-top-width 0.2s ease, box-shadow 0.2s ease;
    align-items: flex-start;
    align-self: auto;
  }

  .site-nav.is-open {
    max-height: min(70vh, 28rem);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0.75rem 1.25rem 1rem;
    overflow-y: auto;
    border-top-width: 1px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-list a {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius);
  }

  .nav-list a.nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Main */
.site-main {
  padding-block: 0 4rem;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.hero-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin: 0 0 1.75rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

.hero-stats li {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.hero-stats strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.hero-card {
  position: relative;
}

.hero-card-inner {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 280px;
}

.hero-blob {
  position: absolute;
  width: 200px;
  height: 200px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent 70%);
  filter: blur(2px);
}

.hero-card-kicker {
  position: relative;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.hero-card-text {
  position: relative;
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  filter: brightness(1.08);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #fff;
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section--muted {
  background: rgba(17, 24, 39, 0.6);
  border-block: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .card-grid--3 {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.card-text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.section-cta {
  text-align: center;
  margin: 2rem 0 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.two-col .lead {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
}

.cta-panel {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.cta-panel-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 0.35rem;
}

.cta-email {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  word-break: break-all;
}

/* Page hero */
.page-hero {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.5rem;
}

.page-hero--compact {
  padding-bottom: 0.5rem;
}

.page-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.error-request-id {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.error-request-id code {
  font-size: 0.8rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

/* Prose */
.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.legal-prose .legal-note {
  font-size: 0.88rem;
  color: #64748b;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.inline-cta {
  margin-top: 2rem;
}

/* Services */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-block {
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.service-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.service-block p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.service-block ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.service-block li + li {
  margin-top: 0.35rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.portfolio-thumb {
  height: 160px;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
}

.portfolio-thumb--b {
  background: linear-gradient(135deg, #312e81, #0f172a);
}

.portfolio-thumb--c {
  background: linear-gradient(135deg, #155e75, #0f172a);
}

.portfolio-title {
  font-size: 1.15rem;
  margin: 0;
  padding: 1.25rem 1.25rem 0;
}

.portfolio-meta {
  font-size: 0.8rem;
  color: var(--color-accent);
  margin: 0.35rem 0 0.75rem;
  padding: 0 1.25rem;
}

.portfolio-desc {
  margin: 0;
  padding: 0 1.25rem 1.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* App 專區產品卡片 */
.app-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .app-product-grid {
    grid-template-columns: 1fr;
  }
}

.app-product-card {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, transform 0.2s;
}

.app-product-card--with-footer {
  display: flex;
  flex-direction: column;
}

.app-product-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.app-product-thumb {
  height: 140px;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
}

.app-product-thumb--lifenote {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 45%, #0f172a 100%);
}

.app-product-thumb--vault {
  background: linear-gradient(135deg, #059669 0%, #1e40af 50%, #0f172a 100%);
}

.app-product-title {
  font-size: 1.25rem;
  margin: 0;
  padding: 1.25rem 1.25rem 0;
}

.app-product-meta {
  font-size: 0.8rem;
  color: var(--color-accent);
  margin: 0.35rem 0 0.75rem;
  padding: 0 1.25rem;
}

.app-product-desc {
  margin: 0;
  padding: 0 1.25rem 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.app-product-tags {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-product-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #bae6fd;
}

.app-product-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding: 0.5rem 1.25rem 1.15rem;
}

.app-product-footer-sep {
  color: var(--color-muted);
  font-size: 0.85rem;
  user-select: none;
}

.app-product-footer a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
}

.app-product-footer a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Blog */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.blog-card--soon {
  opacity: 0.92;
}

.blog-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.blog-excerpt {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-aside {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.contact-aside-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.contact-line {
  margin: 0 0 1rem;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.contact-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.contact-form-wrap .field {
  margin-bottom: 1.15rem;
}

.contact-form-wrap label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}

.input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: var(--focus);
}

.textarea {
  resize: vertical;
  min-height: 140px;
}

.field-error {
  display: block;
  font-size: 0.85rem;
  color: #fca5a5;
  margin-top: 0.35rem;
}

.alert {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-border);
  background: rgba(11, 18, 32, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.footer-heading {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.4rem;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-copy {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

body {
  display: flex;
  flex-direction: column;
}
