/* ============================================
   HOUSE ARES — Design System & Styles
   Premium Black & Gold Finance Landing Page
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;

  --gold-primary: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #8a6d2b;
  --gold-muted: #6b5a2e;
  --gold-gradient: linear-gradient(135deg, #8a6d2b, #c9a84c, #e8d48b, #c9a84c, #8a6d2b);
  --gold-gradient-text: linear-gradient(135deg, #c9a84c, #e8d48b, #c9a84c);
  --gold-border: linear-gradient(135deg, #8a6d2b, #c9a84c 30%, #e8d48b 50%, #c9a84c 70%, #8a6d2b);

  --text-primary: #f5f0e8;
  --text-secondary: #a09882;
  --text-muted: #6b6352;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

body.loading {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- Loading Screen ---------- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

#loading-screen.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

#loading-canvas {
  width: 320px;
  height: 200px;
}

.loading-text {
  margin-top: 32px;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-primary);
  opacity: 0;
  animation: loadTextFadeIn 0.6s 0.3s forwards;
}

.loading-bar-track {
  width: 200px;
  height: 1px;
  background: var(--gold-muted);
  margin-top: 16px;
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;
  animation: loadTextFadeIn 0.6s 0.5s forwards;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 1px;
  transition: width 0.3s ease;
}

@keyframes loadTextFadeIn {
  to { opacity: 1; }
}

/* ---------- Background Canvas ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ---------- Main Content ---------- */
.main-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s 0.2s var(--ease-out-expo);
}

.main-content.visible {
  opacity: 1;
}

/* ---------- Navigation / Top Logo ---------- */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0) 100%);
  pointer-events: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-dark);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-primary);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
}

.hero-logo-container {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 1s 0.4s var(--ease-out-expo);
}

.hero-logo-container.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dark);
  box-shadow:
    0 0 40px rgba(201, 168, 76, 0.15),
    0 0 80px rgba(201, 168, 76, 0.05);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: 12px;
  text-transform: uppercase;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s 0.6s var(--ease-out-expo);
}

.hero-title.reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s 0.8s var(--ease-out-expo);
}

.hero-subtitle.reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold-gradient);
  margin: 40px auto 0;
  opacity: 0;
  transform: scaleX(0);
  transition: all 1s 1s var(--ease-out-expo);
}

.hero-divider.reveal {
  opacity: 1;
  transform: scaleX(1);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: scrollIndicatorIn 1s 2s forwards;
}

@keyframes scrollIndicatorIn {
  to { opacity: 0.5; }
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ---------- Section Common ---------- */
.section {
  padding: 120px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 48px;
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold-gradient);
  margin-bottom: 40px;
}

/* Scroll Reveal */
.sr {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

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

/* ---------- About Section ---------- */
.about {
  padding: 120px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-dark);
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}

.about-image-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(10,10,10,0.8) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.about-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05);
  transition: transform 0.6s var(--ease-out-expo);
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.03);
}

.about-image-accent {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 60px;
  height: 60px;
  border-top: 1px solid var(--gold-primary);
  border-left: 1px solid var(--gold-primary);
  z-index: 3;
}

.about-image-accent-br {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60px;
  height: 60px;
  border-bottom: 1px solid var(--gold-primary);
  border-right: 1px solid var(--gold-primary);
  z-index: 3;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-text:last-of-type {
  margin-bottom: 0;
}

.about-highlight {
  color: var(--gold-primary);
  font-weight: 500;
}

/* ---------- CTA Sections ---------- */
.cta-section {
  padding: 100px 40px;
  text-align: center;
}

.cta-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 72px 56px;
  position: relative;
  background: linear-gradient(145deg, rgba(15, 13, 8, 0.6), rgba(10, 10, 10, 0.9));
  border-radius: 0;
  border: none;
  transition: box-shadow 0.5s ease;
}

.cta-card:hover {
  box-shadow: 0 0 100px rgba(201, 168, 76, 0.04);
}

/* --- Ornamental Gold Corners --- */
.card-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 2;
}

/* L-shaped corner lines */
.card-corner::before {
  content: '';
  position: absolute;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
}

.card-corner::after {
  content: '';
  position: absolute;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
}

/* Top-Left */
.card-corner-tl {
  top: 0;
  left: 0;
}
.card-corner-tl::before {
  top: 0; left: 0;
  width: 28px; height: 1px;
}
.card-corner-tl::after {
  top: 0; left: 0;
  width: 1px; height: 28px;
}

/* Top-Right */
.card-corner-tr {
  top: 0;
  right: 0;
}
.card-corner-tr::before {
  top: 0; right: 0;
  width: 28px; height: 1px;
}
.card-corner-tr::after {
  top: 0; right: 0;
  width: 1px; height: 28px;
}

/* Bottom-Left */
.card-corner-bl {
  bottom: 0;
  left: 0;
}
.card-corner-bl::before {
  bottom: 0; left: 0;
  width: 28px; height: 1px;
}
.card-corner-bl::after {
  bottom: 0; left: 0;
  width: 1px; height: 28px;
}

/* Bottom-Right */
.card-corner-br {
  bottom: 0;
  right: 0;
}
.card-corner-br::before {
  bottom: 0; right: 0;
  width: 28px; height: 1px;
}
.card-corner-br::after {
  bottom: 0; right: 0;
  width: 1px; height: 28px;
}

/* --- Decorative horizontal lines with center diamond --- */
.card-line {
  position: absolute;
  left: 40px;
  right: 40px;
  height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.card-line::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
}

.card-line::after {
  content: '';
  position: relative;
  width: 5px;
  height: 5px;
  background: var(--gold-primary);
  transform: rotate(45deg);
  flex-shrink: 0;
  z-index: 3;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
}

.card-line-top {
  top: 16px;
}

.card-line-bottom {
  bottom: 16px;
}

.cta-card-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 40px;
  position: relative;
  background: transparent;
  color: var(--gold-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  border-radius: 2px;
  transition: all 0.4s var(--ease-out-quart);
}

/* Gold gradient border using background on pseudo-element */
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  padding: 1.5px;
  background: var(--gold-border);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 2px;
  z-index: -1;
}

.cta-btn:hover {
  color: var(--bg-primary);
}

.cta-btn:hover::after {
  opacity: 1;
}

.cta-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-quart);
}

.cta-btn:hover .cta-btn-icon {
  transform: scale(1.1);
}

/* ---------- Divider Between Sections ---------- */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.separator-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  max-width: 200px;
}

.separator-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  transform: rotate(45deg);
  margin: 0 20px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 40px 40px;
  text-align: center;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero {
    padding: 100px 24px 80px;
  }

  .hero-logo {
    width: 110px;
    height: 110px;
  }

  .hero-title {
    letter-spacing: 6px;
  }

  .section,
  .about {
    padding: 80px 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .about-image {
    aspect-ratio: 3 / 4;
    object-position: center top;
  }

  .cta-section {
    padding: 60px 24px;
  }

  .cta-card {
    padding: 48px 28px;
  }

  .cta-btn {
    padding: 16px 28px;
    font-size: 12px;
    letter-spacing: 2px;
  }

  .nav-bar {
    padding: 16px 24px;
  }

  .nav-logo-img {
    width: 30px;
    height: 30px;
  }

  .nav-logo-text {
    font-size: 9px;
    letter-spacing: 2px;
  }

  #loading-canvas {
    width: 260px;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 11px;
    letter-spacing: 4px;
  }

  .about-text {
    font-size: 14px;
  }

  .cta-card-title {
    letter-spacing: 2px;
  }
}
