:root {
  --color-navy: #0b1f3a;
  --color-navy-2: #102b4c;
  --color-gold: #d39a27;
  --color-gold-dark: #b98018;
  --color-teal: #0b7068;
  --color-teal-dark: #0a6b61;
  --color-ivory: #f7f1e8;
  --color-soft-ivory: #fbf7f1;
  --color-text: #102033;
  --color-muted: #5e6b7a;
  --color-border: rgba(16, 32, 51, 0.12);
  --color-line-light: rgba(247, 241, 232, 0.16);

  --surface-main: linear-gradient(140deg, rgba(11, 31, 58, 0.92), rgba(16, 43, 76, 0.85));
  --surface-side: linear-gradient(165deg, rgba(247, 241, 232, 0.1), rgba(247, 241, 232, 0.04));
  --surface-panel: rgba(247, 241, 232, 0.08);

  --text-strong: var(--color-ivory);
  --text-body: rgba(247, 241, 232, 0.9);
  --text-muted: rgba(247, 241, 232, 0.72);
  --text-soft: rgba(247, 241, 232, 0.56);

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 22px 45px rgba(3, 11, 24, 0.48);
  --shadow-soft: 0 10px 24px rgba(3, 11, 24, 0.22);
  --transition: 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(80% 90% at 86% 12%, rgba(211, 154, 39, 0.2), transparent 58%),
    radial-gradient(70% 90% at 4% 100%, rgba(11, 112, 104, 0.24), transparent 55%),
    linear-gradient(145deg, var(--color-navy) 0%, var(--color-navy-2) 72%, #0d2542 100%);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
}

main {
  padding: var(--space-6) 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}

.content-wrapper {
  background: var(--surface-main);
  border: 1px solid var(--color-line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 0;
  align-items: stretch;
  position: relative;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.content-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 241, 232, 0.05), transparent 26%);
}

/* Main content */
.main-content {
  padding: var(--space-6) 38px;
  position: relative;
}

.header-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: section-fade-up 0.42s ease both;
}

.brand-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.55px;
  color: var(--text-strong);
}

.brand-name {
  font-size: 15px;
}

.trademark {
  font-size: 11px;
  color: var(--color-gold);
}

.status-badge {
  background: rgba(11, 112, 104, 0.24);
  border: 1px solid rgba(11, 112, 104, 0.68);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: #d7f2ef;
  letter-spacing: 0.25px;
}

.heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.6px;
  color: var(--text-strong);
  text-wrap: balance;
}

.heading .material-symbols-outlined {
  font-size: 56px;
  font-variation-settings: "wght" 400;
  color: rgba(247, 241, 232, 0.82);
}

.description {
  font-size: 24px;
  color: var(--text-body);
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.host-info {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-soft);
  font-weight: 700;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: calc(var(--space-1) * -0.25);
}

.topic-pill {
  background: rgba(247, 241, 232, 0.08);
  border: 1px solid rgba(247, 241, 232, 0.22);
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-body);
  letter-spacing: 0.15px;
  transition: all var(--transition);
}

.topic-pill:hover {
  background: rgba(247, 241, 232, 0.14);
  border-color: rgba(247, 241, 232, 0.34);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: calc(var(--space-1) * -0.15);
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(2px);
}

.btn .material-symbols-outlined {
  font-size: 18px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, #e0aa3a 0%, var(--color-gold) 100%);
  border-color: rgba(255, 224, 161, 0.5);
  color: var(--color-navy);
  box-shadow: 0 10px 20px rgba(185, 128, 24, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #e7b347 0%, var(--color-gold-dark) 100%);
  box-shadow: 0 14px 28px rgba(185, 128, 24, 0.32);
}

.btn-secondary {
  background: rgba(247, 241, 232, 0.03);
  color: var(--text-strong);
  border-color: rgba(11, 112, 104, 0.65);
}

.btn-secondary:hover {
  background: rgba(11, 112, 104, 0.2);
  border-color: rgba(11, 112, 104, 0.82);
}

.footer-note {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 60ch;
  margin-top: calc(var(--space-1) * -0.1);
}

/* Sidebar */
.sidebar {
  background: var(--surface-side);
  border-left: 1px solid var(--color-line-light);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: section-fade-up 0.42s ease both;
  animation-delay: 0.02s;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 241, 232, 0.04), transparent 42%);
}

.sidebar-section {
  background: var(--surface-panel);
  border: 1px solid rgba(247, 241, 232, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
  animation: section-fade-up 0.4s ease both;
}

.sidebar-section:nth-of-type(1) {
  animation-delay: 0.03s;
}

.sidebar-section:nth-of-type(2) {
  animation-delay: 0.07s;
}

.sidebar-section:nth-of-type(3) {
  animation-delay: 0.11s;
}

.sidebar-section-spotlight {
  border-color: rgba(211, 154, 39, 0.45);
  background: linear-gradient(180deg, rgba(211, 154, 39, 0.16) 0%, rgba(247, 241, 232, 0.07) 100%);
  position: relative;
}

.sidebar-section-spotlight::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f1c15c 0%, var(--color-gold-dark) 100%);
}

.sidebar-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: rgba(247, 241, 232, 0.96);
  margin-bottom: 10px;
}

.sidebar-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.sidebar-link {
  display: inline-block;
  margin-top: 11px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(247, 241, 232, 0.22);
  background: rgba(247, 241, 232, 0.08);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: all var(--transition);
}

.sidebar-link:hover {
  background: rgba(247, 241, 232, 0.16);
  border-color: rgba(247, 241, 232, 0.32);
  transform: translateY(-1px);
}

.sidebar-link-strong {
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  background: linear-gradient(180deg, #e0aa3a 0%, var(--color-gold) 100%);
  color: var(--color-navy);
  border-color: rgba(255, 224, 161, 0.5);
  font-size: 13px;
  box-shadow: 0 10px 20px rgba(185, 128, 24, 0.25);
}

.sidebar-link-strong:hover {
  background: linear-gradient(180deg, #e7b347 0%, var(--color-gold-dark) 100%);
  border-color: rgba(255, 224, 161, 0.62);
}

.sidebar-footer {
  background: rgba(7, 20, 38, 0.46);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(247, 241, 232, 0.14);
  text-align: right;
  animation: section-fade-up 0.4s ease both;
  animation-delay: 0.14s;
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.launch-status {
  font-size: 11px;
  color: rgba(15, 191, 176, 0.95);
  margin-top: 4px;
  letter-spacing: 0.2px;
}

.trademark-notice {
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.45;
  padding: 12px;
  border-top: 1px solid rgba(247, 241, 232, 0.16);
  animation: section-fade-up 0.4s ease both;
  animation-delay: 0.16s;
}

@media (min-width: 1180px) {
  .container {
    max-width: min(1320px, 92vw);
  }

  .content-wrapper {
    grid-template-columns: minmax(0, 1fr) 435px;
  }

  .main-content {
    padding: 58px 54px;
  }

  .header-section {
    gap: 26px;
  }

  .heading {
    font-size: 82px;
    line-height: 0.94;
  }

  .description {
    font-size: 31px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-name {
    font-size: 16px;
  }

  .topic-pill {
    font-size: 14px;
    padding: 9px 16px;
  }

  .btn {
    font-size: 15px;
    min-height: 48px;
    padding: 12px 22px;
  }

  .sidebar {
    padding: 34px 30px;
    gap: 16px;
  }

  .sidebar-title {
    font-size: 14px;
  }

  .sidebar-text {
    font-size: 15px;
    line-height: 1.65;
  }

  .trademark-notice {
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: min(1450px, 90vw);
  }

  .content-wrapper {
    grid-template-columns: minmax(0, 1fr) 485px;
  }

  .main-content {
    padding: 66px 64px;
  }

  .header-section {
    gap: 28px;
  }

  .heading {
    font-size: 94px;
  }

  .description {
    font-size: 35px;
  }

  .footer-note {
    font-size: 16px;
    max-width: 62ch;
  }

  .sidebar {
    padding: 40px 34px;
  }

  .sidebar-title {
    font-size: 14px;
  }

  .sidebar-text {
    font-size: 16px;
  }
}

a:focus-visible,
.btn:focus-visible,
.sidebar-link:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(211, 154, 39, 0.22);
}

/* Material icons */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* Responsive design */
@media (max-width: 768px) {
  main {
    padding: 24px 16px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 28px 24px;
  }

  .sidebar {
    border-left: 0;
    border-top: 1px solid var(--color-line-light);
    padding: 22px 18px;
  }

  .heading {
    font-size: 44px;
  }

  .heading .material-symbols-outlined {
    font-size: 40px;
  }

  .description {
    font-size: 19px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  main {
    padding: 14px;
  }

  .main-content {
    padding: 20px 16px;
  }

  .sidebar {
    padding: 18px 14px;
  }

  .heading {
    font-size: 34px;
    gap: 8px;
  }

  .heading .material-symbols-outlined {
    font-size: 30px;
  }

  .description {
    font-size: 16px;
  }

  .topics {
    gap: 8px;
  }

  .topic-pill {
    padding: 6px 12px;
    font-size: 12px;
  }

  .sidebar-section {
    padding: 14px;
  }

  .sidebar-link,
  .sidebar-link-strong {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== MODALS ===== */

dialog.modal {
  /* Explicit centering — don't rely on browser defaults for <dialog> */
  position: fixed;
  inset: 0;
  margin: auto;
  background: transparent;
  border: none;
  padding: 0;
  max-width: min(520px, calc(100vw - 32px));
  width: 100%;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border-radius: var(--radius);
}

dialog.modal::backdrop {
  background: rgba(5, 14, 30, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-content {
  background: linear-gradient(160deg, rgba(11, 31, 58, 0.97), rgba(16, 43, 76, 0.95));
  border: 1px solid var(--color-line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(247, 241, 232, 0.04);
  padding: 32px;
  position: relative;
  animation: modal-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
}

.modal-title .material-symbols-outlined {
  font-size: 22px;
  color: var(--color-gold);
}

.modal-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(247, 241, 232, 0.06);
  border: 1px solid rgba(247, 241, 232, 0.16);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: -4px;
}

.modal-close:hover {
  background: rgba(247, 241, 232, 0.14);
  color: var(--text-strong);
}

.modal-close .material-symbols-outlined {
  font-size: 18px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

/* Form elements */
.bot-trap {
  display: none;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: rgba(247, 241, 232, 0.86);
}

.required {
  color: var(--color-gold);
}

.form-input {
  background: rgba(247, 241, 232, 0.05);
  border: 1px solid rgba(247, 241, 232, 0.18);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-strong);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-input::placeholder {
  color: rgba(247, 241, 232, 0.3);
}

.form-input:focus {
  border-color: rgba(211, 154, 39, 0.6);
  background: rgba(247, 241, 232, 0.08);
  box-shadow: 0 0 0 3px rgba(211, 154, 39, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.55;
}

.modal-submit {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

.form-captcha {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.form-captcha > div {
  width: 100%;
  display: flex;
  justify-content: center;
}

.form-error {
  font-size: 13px;
  color: #f89080;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(248, 90, 60, 0.1);
  border: 1px solid rgba(248, 90, 60, 0.28);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* Modal success state */
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 16px 0 8px;
  animation: section-fade-up 0.28s ease both;
}

/* Ensure [hidden] attribute beats display:flex — critical for success state */
.modal-success[hidden],
form[hidden] {
  display: none !important;
}

.modal-success-icon {
  font-size: 48px;
  color: var(--color-gold);
  font-variation-settings: "FILL" 1, "wght" 400;
}

.modal-success-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-strong);
}

.modal-success-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 34ch;
}

.modal-success .btn {
  margin-top: 8px;
}

/* focus-visible ring for modal elements */
.modal-close:focus-visible,
.form-input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 24px 20px;
  }

  .modal-title {
    font-size: 19px;
  }
}

/* ===== KEYFRAMES ===== */

@keyframes section-fade-up {
  from {
    opacity: 0.92;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
