:root {
  --bg-color: #0a0a0a;
  --grid-color: rgba(255, 255, 255, 0.05);
  --text-main: #ffffff;
  --text-muted: #8a8a8a;
  --text-dim: #5a5a5a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 150px 150px;
  background-position: center top;
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==============================
   ENTRANCE ANIMATIONS
   ============================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero-specific stagger */
.hero-content .hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-content .hero-subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-content .cta-button {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

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

/* ==============================
   NAV
   ============================== */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 4rem;
  position: relative;
  z-index: 10;
  max-width: 2000px;
  margin: 0 auto;
}

.logo img {
  height: 160px;
  width: auto;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s;
  z-index: 20;
}

.lang-toggle:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==============================
   HERO
   ============================== */

.hero {
  display: flex;
  min-height: calc(100vh - 120px);
  padding: 0 4rem;
  position: relative;
  max-width: 2000px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
  margin-left: 4vw;
  z-index: 2;
  padding-bottom: 10vh;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 600;
  line-height: 1.0;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.7;
  max-width: 85%;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.cta-button {
  display: inline-block;
  background-color: var(--text-main);
  color: #000;
  border: none;
  border-radius: 0;
  padding: 1.2rem 3rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
  letter-spacing: 0.22em;
}

.hero-graphic {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translate(35%, -50%);
  width: max(1600px, 70vw);
  max-width: none;
  z-index: 0;
  pointer-events: none;
}

.hero-graphic img {
  width: 100%;
  height: auto;
  opacity: 0.35;
  animation: rotateCircle 120s linear infinite;
  filter: contrast(1.1);
}

@keyframes rotateCircle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==============================
   SECTIONS
   ============================== */

.section {
  padding: 8rem 4rem;
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 4rem;
  margin-top: 1.5rem;
}

/* ==============================
   GRID & CARDS
   ============================== */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.grid.col-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 3rem 2.5rem;
  border-radius: 0;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==============================
   METHOD SECTION — ALTERNATE LAYOUT
   ============================== */

#method {
  border-top: 1px solid var(--surface-border);
}

#method .grid {
  counter-reset: method-step;
}

#method .card {
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid var(--surface-border);
  background: transparent;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
}

#method .grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#method .card::before {
  counter-increment: method-step;
  content: "0" counter(method-step);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.15);
  padding-top: 0.2rem;
}

#method .card:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

#method .card .card-number {
  display: none;
}

/* ==============================
   INTEGRITY SECTION
   ============================== */

#integrity {
  border-top: 1px solid var(--surface-border);
}

#integrity .card {
  padding: 3.5rem 3rem;
}

/* ==============================
   CONTACT SECTION
   ============================== */

.contact-section {
  border-top: 1px solid var(--surface-border);
}

.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
  line-height: 1.7;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.3rem;
  transition: border-color 0.3s;
}

.contact-email:hover {
  border-color: var(--text-main);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 3rem;
  border-radius: 0;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: 0;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
  text-align: center;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-message.error {
  color: #ff5555;
}

.success-message {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4rem 3rem;
  border-radius: 0;
  text-align: center;
}

.success-message h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.success-message p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.outline-button {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
  border-radius: 0;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.outline-button:hover {
  background: var(--text-main);
  color: #000;
}

/* ==============================
   FOOTER
   ============================== */

footer {
  padding: 3rem 4rem;
  border-top: 1px solid var(--surface-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s;
  letter-spacing: 0.03em;
}

.footer-links a:hover {
  color: var(--text-main);
}

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

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  overflow-y: auto;
  padding: 2rem;
}

.modal-content {
  background: #111;
  border: 1px solid var(--surface-border);
  max-width: 800px;
  margin: 2rem auto;
  padding: 4rem;
  border-radius: 0;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.close-modal:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

.modal-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-main);
}

.modal-content p,
.modal-content ul {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-content ul {
  padding-left: 1.5rem;
}

.modal-content li {
  margin-bottom: 0.5rem;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 1024px) {
  .hero-title { font-size: 5.5rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-graphic {
    right: 0;
    transform: translate(45%, -50%);
    width: 1000px;
  }
}

@media (max-width: 768px) {
  nav { padding: 1.5rem; }
  .logo img { height: 75px; }
  .lang-toggle { font-size: 0.7rem; padding: 0.5rem 1rem; }

  .hero { padding: 0 1.5rem; min-height: auto; margin-top: 2rem; overflow: hidden; }
  .hero-content { margin-left: 0; max-width: 100%; padding-bottom: 5vh; }
  .hero-title { font-size: 4.5rem; margin-bottom: 1.5rem; }
  .hero-subtitle { font-size: 1.1rem; max-width: 100%; margin-bottom: 2rem; }

  .hero-graphic {
    position: fixed;
    right: 0;
    transform: translate(45%, -50%);
    top: 50%;
    width: 800px;
    opacity: 0.12;
  }

  .section { padding: 4rem 1.5rem; }
  .section-title { font-size: 2.2rem; margin-bottom: 1rem; }

  .grid, .grid.col-2 { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 2rem 1.5rem; }

  #method .card {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .contact-section .container { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form { padding: 2rem 1.5rem; }

  .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
  .modal-content { padding: 2rem 1.5rem; margin: 1rem; width: auto; }
}
