/*
  ⚠️ XIRANTIS BRAND OS TOKEN SYSTEM
  DO NOT ADD HARDCODED COLORS, FONTS, OR SPACING VALUES OUTSIDE :root
  All visual tokens must use CSS variables (--xi-*) to maintain brand consistency
  and make future updates safe across all pages.
*/

/* ========================================
   Xirantis Brand OS - CSS Token System
   ======================================== */

:root {
  /* Colors - Primary */
  --color-navy: #0D1B2A;
  --color-navy-mid: #132536;
  --color-teal: #00B4C8;
  --color-teal-dark: #007E8F;
  --color-teal-hover: #007E8F;

  /* Colors - Accent */
  --color-gold: #E9A800;
  --color-gold-light: #FFC933;

  /* Colors - Neutral */
  --color-white: #FFFFFF;
  --color-cream: #F5F7FA;
  --color-gray-700: #3D4E5E;
  --color-gray-500: #7A8899;
  --color-gray-300: #C4CDD9;

  /* Colors - Footer */
  --color-footer: #070E15;

  /* Typography - Display & Headings */
  --font-family-display: "Montserrat", sans-serif;
  --font-family-body: "Inter", sans-serif;

  /* Display (H1) */
  --font-size-display: clamp(42px, 6vw, 72px);
  --font-weight-display: 900;
  --line-height-display: 1.2;
  --letter-spacing-display: -1px;

  /* H2 */
  --font-size-h2: clamp(26px, 3vw, 36px);
  --font-weight-h2: 800;
  --line-height-h2: 1.3;
  --letter-spacing-h2: 0;

  /* H3 */
  --font-size-h3: 20px;
  --font-weight-h3: 700;
  --line-height-h3: 1.3;
  --letter-spacing-h3: 0;

  /* H4 (optional derivative) */
  --font-size-h4: 18px;
  --font-weight-h4: 700;
  --line-height-h4: 1.4;

  /* Body text */
  --font-size-body: 15px;
  --font-weight-body: 400;
  --line-height-body: 1.7;
  --letter-spacing-body: 0;

  /* Small body / caption */
  --font-size-small: 14px;
  --font-weight-small: 400;
  --line-height-small: 1.6;

  /* CTAs / Buttons */
  --font-size-cta: clamp(12px, 1vw, 13px);
  --font-weight-cta: 700;
  --text-transform-cta: uppercase;
  --letter-spacing-cta: 0.1em;

  /* Spacing */
  --section-padding: 70px 0;
  --container-max-width: 1100px;
  --container-padding: 0 60px;

  /* Border Radius */
  --border-radius-large: 16px;
  --border-radius-medium: 12px;
  --border-radius-small: 8px;

  /* Box Shadow */
  --box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
}

/* ========================================
   Global Styles
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  color: var(--color-gray-700);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */

h1,
.h1 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
  color: var(--color-navy);
}

h2,
.h2 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-h2);
  line-height: var(--line-height-h2);
  color: var(--color-navy);
}

h3,
.h3 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-h3);
  line-height: var(--line-height-h3);
  color: var(--color-navy);
}

h4,
.h4 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-h4);
  line-height: var(--line-height-h4);
  color: var(--color-navy);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-teal-dark);
}

/* ========================================
   Container & Layout
   ======================================== */

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

section {
  padding: var(--section-padding);
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
  background-color: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-mark {
  color: var(--color-teal);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-family-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-teal);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

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

.hero-heading {
  color: var(--color-white);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
  margin-bottom: 1.5rem;
}

.hero-heading .accent {
  color: var(--color-teal);
}

.tagline {
  color: var(--color-white);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.hero-description {
  color: var(--color-cream);
  font-size: var(--font-size-body);
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.hero .btn-primary {
  margin-top: 1rem;
}

/* ========================================
   Buttons & CTAs
   ======================================== */

.btn,
button,
input[type="button"],
input[type="submit"] {
  font-family: var(--font-family-body);
  font-size: var(--font-size-cta);
  font-weight: var(--font-weight-cta);
  text-transform: var(--text-transform-cta);
  letter-spacing: var(--letter-spacing-cta);
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-teal-dark);
}

.btn-secondary {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-navy-mid);
}

/* ========================================
   For Brands Section
   ======================================== */

.brands-section {
  background-color: var(--color-cream);
  padding: var(--section-padding);
}

.brands-section h2 {
  position: relative;
  margin-bottom: 3rem;
  color: var(--color-navy);
}

.brands-section h2 .accent {
  color: var(--color-teal);
}

.brands-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-teal);
  margin-top: 1rem;
}

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

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius-large);
  box-shadow: var(--box-shadow);
  padding: 32px;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--box-shadow);
  transform: translateY(-4px);
}

.card h3 {
  font-family: var(--font-family-display);
  font-size: 20px;
  font-weight: var(--font-weight-h3);
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.card p {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  color: var(--color-gray-700);
  line-height: var(--line-height-body);
  margin: 0;
}

.badge {
  display: inline-block;
  background-color: var(--color-gold-light);
  color: var(--color-navy);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-cta);
  padding: 4px 12px;
  border-radius: var(--border-radius-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   The System Section (Methodology)
   ======================================== */

.system-section {
  background-color: var(--color-navy);
  padding: var(--section-padding);
}

.system-section h2 {
  color: var(--color-white);
  position: relative;
  margin-bottom: 3rem;
}

.system-section h2 .accent {
  color: var(--color-gold);
}

.system-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-gold);
  margin-top: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.step-number {
  color: var(--color-gold);
  font-family: var(--font-family-display);
  font-size: clamp(52px, 8vw, 72px);
  font-weight: bold;
  flex-shrink: 0;
  line-height: 1;
}

.step-content {
  flex: 1;
}

.step h3 {
  font-family: var(--font-family-display);
  font-size: 20px;
  font-weight: var(--font-weight-h3);
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.step p {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  color: var(--color-white);
  line-height: var(--line-height-body);
  margin: 0;
}

/* ========================================
   Founder Credentials Section
   ======================================== */

.founder-section {
  background-color: var(--color-cream);
  padding: var(--section-padding);
}

.founder-section h2 {
  position: relative;
  margin-bottom: 3rem;
  color: var(--color-navy);
}

.founder-section h2 .accent {
  color: var(--color-teal);
}

.founder-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-teal);
  margin-top: 1rem;
}

.founder-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.founder-left {
  padding-right: 24px;
}

.founder-left p {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  color: var(--color-gray-700);
  line-height: var(--line-height-body);
  margin-bottom: 1.5rem;
}

.credentials-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 1.5rem;
}

.credentials-list li {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  color: var(--color-navy);
  line-height: 1.7;
  margin-bottom: 12px;
}

.founder-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.monogram {
  width: 56px;
  height: 56px;
  background-color: var(--color-navy);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  font-weight: 900;
  color: var(--color-teal);
  font-family: var(--font-family-display);
  box-shadow: var(--box-shadow);
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
  background-color: var(--color-navy);
  padding: var(--section-padding);
}

.contact-section h2 {
  color: var(--color-white);
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.contact-section h2 .accent {
  color: var(--color-teal);
}

.contact-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-teal);
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 32px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-large);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-family-body);
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  padding: 12px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius-medium);
  background-color: var(--color-white);
  color: var(--color-gray-700);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 180, 200, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  display: none;
  font-family: var(--font-family-body);
  font-size: 12px;
  color: #E74C3C;
  margin-top: 4px;
}

.form-error.show {
  display: block;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #E74C3C;
}

.contact-form .btn-primary {
  width: 100%;
  margin-top: 8px;
}

.success-message {
  max-width: 500px;
  margin: 0 auto;
  padding: 16px 24px;
  background-color: rgba(0, 180, 200, 0.15);
  border-left: 4px solid var(--color-teal);
  border-radius: var(--border-radius-medium);
  color: var(--color-teal);
  font-weight: 500;
  text-align: center;
  font-size: var(--font-size-body);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background-color: var(--color-footer);
  color: var(--color-white);
  padding: 60px 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 48px;
  padding: 48px 0;
  flex-wrap: wrap;
}

.footer-left h3 {
  font-family: var(--font-family-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.footer-left p {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  color: var(--color-white);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer-left p:last-child {
  font-size: var(--font-size-small);
  color: var(--color-gray-300);
}

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

.footer-center a {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-fast);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.footer-center a:hover {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-right a {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-fast);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.footer-right a:hover {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-family-body);
  font-size: var(--font-size-small);
  color: var(--color-gray-300);
  margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  :root {
    --container-padding: 0 20px;
    --section-padding: 50px 0;
    --font-size-display: clamp(32px, 5vw, 48px);
    --font-size-h2: clamp(20px, 2.5vw, 26px);
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero {
    padding: 80px 0;
    min-height: 500px;
  }

  .hero-description {
    font-size: 14px;
  }

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

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

  .founder-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .founder-left {
    padding-right: 0;
    margin-bottom: 1rem;
  }

  .contact-form {
    padding: 24px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 40px 0;
  }

  .footer-center {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-right {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0 15px;
    --section-padding: 40px 0;
    --font-size-display: clamp(28px, 4.5vw, 40px);
  }

  .navbar-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 12px;
  }

  .nav-links a {
    font-size: 12px;
  }

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

  .hero {
    padding: 60px 0;
    min-height: auto;
  }

  .tagline {
    font-size: 18px;
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: 13px;
    margin-bottom: 2rem;
  }

  .btn,
  button {
    padding: 10px 16px;
    font-size: 11px;
    min-height: 44px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step {
    flex-direction: column;
    gap: 16px;
  }

  .step-number {
    font-size: clamp(48px, 10vw, 64px);
  }

  .founder-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .founder-left {
    padding-right: 0;
  }

  .founder-left p {
    font-size: 14px;
  }

  .credentials-list li {
    font-size: 14px;
  }

  .monogram {
    width: 56px;
    height: 56px;
    font-size: 32px;
  }

  .contact-form {
    padding: 20px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    min-height: 44px;
  }

  .contact-form .btn-primary {
    padding: 12px 16px;
    font-size: 12px;
    min-height: 44px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 32px 0;
  }

  .footer-left {
    width: 100%;
  }

  .footer-left h3 {
    font-size: 18px;
  }

  .footer-left p {
    font-size: 13px;
  }

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

  .footer-center a {
    font-size: 14px;
  }

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

  .footer-right a {
    font-size: 14px;
  }
}
