@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&family=Jost:wght@300;400;500;600&display=swap');

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

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root {
  --bg:              #0c0c0c;
  --surface:         #111111;
  --surface-raised:  #171717;

  --text-primary:    #f0ede8;
  --text-secondary:  #a89f94;
  --text-dark:       #808c91;

  --accent:          #c8b99a;
  --accent-dim:      rgba(200, 185, 154, 0.45);

  --border:          rgba(255, 255, 255, 0.07);

  --nav-bg:          #0c0c0c;
  --nav-border:      rgba(255, 255, 255, 0.07);
  --nav-height:      60px;

  --error:           #e05a5a;
  --success:         #7ec88e;

  --font-display:    'Cormorant Garamond', Georgia, serif;
  --font-body:       'Jost', Arial, sans-serif;

  --bg-color:        var(--bg);
  --text-color:      var(--text-primary);
  --main-color:      var(--accent);
  --sub-color:       var(--text-secondary);
  --sub-alt-color:   var(--surface);
  --error-color:     var(--error);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.hero {
  position: relative;
  height: 40vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40vh;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    color-mix(in srgb, var(--nav-bg) 100%, transparent) 100%
  );
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2.5rem 3rem;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid var(--accent);
  border-radius: 8px;
  width: min(640px, 88vw);
}

.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin-bottom: 0.6rem;
}

.hero__content p {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: th-spin 0.8s linear infinite;
}

@keyframes th-spin { to { transform: rotate(360deg); } }

.status-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--surface);
  border-radius: 4px;
  padding: 12px 16px;
  max-width: 300px;
  min-width: 200px;
  z-index: 9000;
  display: none;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.status-popup.error   { border: 2px solid var(--error);  display: block; }
.status-popup.success { border: 2px solid var(--accent);  display: block; }

.close-popup {
  position: absolute;
  top: 4px;
  right: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.close-popup:hover { color: var(--text-primary); }

.hidden        { display: none !important; }
.text-accent   { color: var(--accent); }
.text-muted    { color: var(--text-secondary); opacity: 0.6; }
.text-center   { text-align: center; }
.text-error    { color: var(--error); }

@media (max-width: 768px) {
  .status-popup {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
}
