:root {
  --bg: #ffffff;
  --bg-elevated: #f5f6f8;
  --bg-card: rgba(255, 255, 255, 0.96);
  --text: #0f1720;
  --text-muted: #3f4a58;
  --accent: #a68026;
  --accent-light: #c19a32;
  --accent-glow: rgba(166, 128, 38, 0.28);
  --accent-soft: rgba(166, 128, 38, 0.1);
  --teal: #8f1f1f;
  --teal-glow: rgba(143, 31, 31, 0.18);
  --border: rgba(15, 23, 32, 0.12);
  --border-hover: rgba(166, 128, 38, 0.35);
  --eu-blue: #003399;
  --eu-blue-dark: #002266;
  --currency-red: #e11d48;
  --currency-red-dark: #be123c;
  --date-blue: #2563eb;
  --success: #3ecf8e;
  --error: #f07178;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(12, 23, 38, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  will-change: transform;
}

.orb--1 {
  width: 520px;
  height: 520px;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  animation: float-1 18s ease-in-out infinite;
}

.orb--2 {
  width: 420px;
  height: 420px;
  top: 40%;
  right: -10%;
  background: radial-gradient(circle, var(--teal-glow), transparent 70%);
  animation: float-2 22s ease-in-out infinite;
}

.orb--3 {
  width: 300px;
  height: 300px;
  bottom: 5%;
  left: 30%;
  background: radial-gradient(circle, rgba(100, 140, 255, 0.15), transparent 70%);
  animation: float-3 16s ease-in-out infinite;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 32, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

@keyframes float-1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, 30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 50px) scale(0.95);
  }
}

@keyframes float-2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, -40px) scale(1.08);
  }
}

@keyframes float-3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -25px);
  }
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

.reveal[data-delay="4"] {
  transition-delay: 0.4s;
}

/* Top utility bar */
.topbar {
  position: relative;
  z-index: 110;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(1.2);
}

.topbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(212, 175, 55, 0.35),
      transparent);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  padding-block: 0.45rem;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.topbar__weather,
.topbar__date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
}

.topbar__date {
  color: var(--date-blue);
}

.topbar__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-light);
  opacity: 0.9;
}

.topbar__divider {
  color: rgba(166, 128, 38, 0.35);
  font-weight: 300;
  user-select: none;
}

.topbar__rates {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.topbar__rate {
  letter-spacing: 0.01em;
  cursor: default;
  color: var(--currency-red);
  transition: opacity 0.3s, color 0.3s;
}

.topbar__rate:hover {
  color: var(--currency-red-dark);
}

.topbar__rate.is-live {
  animation: rate-in 0.4s var(--ease-out);
}

@keyframes rate-in {
  from {
    opacity: 0.4;
    transform: translateY(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar.is-loading .topbar__weather span,
.topbar.is-loading .topbar__rate {
  opacity: 0.55;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid transparent;
  animation: header-enter 0.8s var(--ease-out) both;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(12, 23, 38, 0.08);
}

@keyframes header-enter {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text);
}

.logo__image {
  width: 170px;
  height: auto;
  display: block;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav__link {
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color 0.25s;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  transition: width 0.35s var(--ease-out);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.75rem;
  position: relative;
}

.hero__inner {
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-soft);
  border: 1px solid rgba(166, 128, 38, 0.2);
  border-radius: 999px;
}

.hero__eyebrow-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__brand {
  font-style: normal;
  font-weight: 400;
  color: var(--text);
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

.hero__text {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.hero__actions {
  margin-bottom: 2rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.hero__stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.hero__stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s,
    opacity 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #0a0f14;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(255, 255, 255, 0.35) 50%,
      transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn--glow:hover::before {
  transform: translateX(100%);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(-1px) scale(0.99);
}

.btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn--primary.is-loading .btn__text {
  opacity: 0;
}

.btn--primary.is-loading .btn__loader {
  opacity: 1;
}

.btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-spring);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn__loader {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(10, 15, 20, 0.2);
  border-top-color: #0a0f14;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.7s linear infinite;
}

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

.btn--full {
  width: 100%;
  margin-top: 0.75rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section__header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section__tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(143, 31, 31, 0.08);
  border: 1px solid rgba(143, 31, 31, 0.22);
  border-radius: 999px;
}

.section__header h2 {
  margin: 0 0 0.6rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 400;
}

.section__header p {
  margin: 0 auto;
  max-width: 420px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Form */
.join {
  position: relative;
}

.form {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}

.form:hover {
  border-color: rgba(166, 128, 38, 0.2);
}

.form__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  width: 200%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--accent-soft), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__group {
  margin-bottom: 1rem;
}

.form__group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.form__group:focus-within label {
  color: var(--accent-light);
}

.form__group input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s var(--ease-out),
    background 0.3s;
}

.form__group input::placeholder {
  color: #7e8895;
}

.form__group input:hover {
  border-color: rgba(15, 23, 32, 0.26);
  background: #ffffff;
}

.form__group input:focus {
  outline: none;
  border-color: rgba(166, 128, 38, 0.45);
  box-shadow: 0 0 0 4px rgba(166, 128, 38, 0.1);
  transform: translateY(-1px);
}

.form__group input:invalid:not(:placeholder-shown) {
  border-color: rgba(240, 113, 120, 0.5);
}

.form__message {
  margin: 1.25rem 0 0;
  min-height: 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.form__message--success {
  color: var(--success);
  animation: message-pop 0.5s var(--ease-spring);
}

.form__message--error {
  color: var(--error);
  animation: message-pop 0.5s var(--ease-spring);
}

@keyframes message-pop {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(8px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact__card {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  transition:
    transform 0.4s var(--ease-spring),
    border-color 0.3s,
    box-shadow 0.4s;
  overflow: hidden;
}

.contact__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.contact__card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.contact__card:hover::before {
  opacity: 1;
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(166, 128, 38, 0.2);
  color: var(--accent-light);
  transition: transform 0.4s var(--ease-spring);
}

.contact__card:hover .contact__icon {
  transform: scale(1.08) rotate(-3deg);
}

.contact__icon svg {
  width: 22px;
  height: 22px;
}

.contact__label {
  position: relative;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact__value {
  position: relative;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

a.contact__value {
  transition: color 0.25s;
}

a.contact__value:hover {
  color: var(--accent-light);
}

.social {
  text-align: center;
}

.social__label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  transition:
    transform 0.35s var(--ease-spring),
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}

.social__link--disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.social__link:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--border-hover);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(12, 23, 38, 0.1);
}

.social__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.3s var(--ease-spring);
}

.social__link:hover svg {
  transform: scale(1.15);
}

.contact {
  padding-bottom: 1.25rem;
}

/* Footer */
.footer {
  margin-top: 0;
  padding: 0.75rem 0 0.85rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.footer__logo {
  width: 120px;
  height: auto;
  display: block;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .orb {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .form__row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero__stats {
    gap: 1rem;
  }

  .hero__stat-divider {
    display: none;
  }

  .nav {
    gap: 1.25rem;
  }

  .form {
    padding: 1.25rem;
  }

  .topbar__inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .topbar__inner::-webkit-scrollbar {
    display: none;
  }
}