:root {
  --color-surface-main: #15171B;
  --color-surface-glass: rgba(32, 36, 41, 0.72);
  --color-surface-alt: #23252B;
  --color-accent-copper: #C87639;
  --color-accent-turquoise: #0F6A6D;
  --color-accent-amber: #F6B14A;
  --color-text-primary: #F5F5F7;
  --color-text-secondary: #B6B8BD;
  --color-border-gunmetal: #3B3E44;
  --color-success: #2A9D7A;
  --color-error: #D14343;

  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --fs-display: clamp(2.4rem, 4vw, 3.6rem);
  --fs-h1: clamp(2rem, 3vw, 2.4rem);
  --fs-h2: clamp(1.6rem, 2.5vw, 1.8rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.4rem);
  --fs-body: 1.1rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 2rem;
  --space-5: 3.5rem;
  --space-6: 6rem;

  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-soft: 0 2px 8px rgba(0,0,0,0.32);

  --container-max: 1280px;
  --container-pad: 2rem;
  --container-pad-mobile: 1rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h1); }
h3 { font-size: var(--fs-h2); }
h4 { font-size: var(--fs-h3); }

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-secondary);
}

blockquote {
  margin-bottom: var(--space-4);
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-accent-copper);
  color: var(--color-text-secondary);
}

hr {
  border: none;
  height: 1px;
  background: var(--color-border-gunmetal);
  margin: var(--space-5) 0;
}

:where(h1,h2,h3,h4,h5,h6,p,blockquote,ul,ol) + :where(h1,h2,h3,h4,h5,h6,p,blockquote,ul,ol) {
  margin-top: 0;
}

:where(.flow > *:last-child) {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

@media (max-width: 768px) {
  .container {
    padding-inline: var(--container-pad-mobile);
  }
}

.section {
  padding-block: var(--space-6);
}

.surface-alt {
  background: var(--color-surface-alt);
}

.glass {
  background: var(--color-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-gunmetal);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

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

.separator {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent-copper), transparent);
  margin: var(--space-5) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1b1d21, var(--color-accent-copper));
  color: var(--color-text-primary);
  border: 1px solid var(--color-accent-copper);
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, var(--color-accent-copper), var(--color-accent-amber));
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-border-gunmetal);
}

.btn-secondary:hover {
  border-color: var(--color-accent-turquoise);
  color: #fff;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-gunmetal);
  backdrop-filter: blur(10px);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent-turquoise);
  box-shadow: 0 0 0 1px var(--color-accent-turquoise);
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.form-group {
  margin-bottom: var(--space-4);
}

.status-success {
  color: var(--color-success);
}

.status-error {
  color: var(--color-error);
}

.flex {
  display: flex;
  gap: var(--space-3);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.flex > * {
  min-width: 0;
}

.text-center {
  text-align: center;
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}