/* ============================================================
   KONARIAN — styles.css
   Dark Gold Aesthetic | konarian.com
============================================================ */

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  --bg:       #090b10;
  --bg2:      #0d1017;
  --surface:  #111520;
  --gold:     #c9a84c;
  --gold-lt:  #e8c97a;
  --gold-dim: #7a6230;
  --white:    #f0ede8;
  --muted:    #6b7180;
  --border:   rgba(201, 168, 76, 0.15);

  --pad-x: clamp(24px, 6vw, 80px);
  --pad-y: clamp(80px, 10vw, 130px);
}

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* Noise grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.u-section-label {
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.u-section-label::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold-dim);
}

.u-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.u-section-title em {
  font-style: italic;
  color: var(--gold);
}

.u-gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 32px 0;
}

.u-muted {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.9;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  padding: 14px 36px;
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-lt);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}
.btn-primary:hover::after {
  transform: translateX(0);
}
.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--muted);
  color: var(--muted);
  padding: 14px 36px;
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── MOBILE MENU ─────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 80px var(--pad-x) 40px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--gold);
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 26px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
nav.scrolled {
  background: rgba(9, 11, 16, 0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}
.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-cta {
  border: 1px solid var(--gold-dim) !important;
  color: var(--gold) !important;
  padding: 8px 20px;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(100px, 16vw, 160px) var(--pad-x) 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, black, transparent);
  pointer-events: none;
}

.hero-glow-a {
  position: absolute;
  width: clamp(300px, 50vw, 650px);
  height: clamp(300px, 50vw, 650px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 74, 107, 0.28) 0%, transparent 70%);
  top: 5%;
  right: -80px;
  pointer-events: none;
}
.hero-glow-b {
  position: absolute;
  width: clamp(200px, 35vw, 420px);
  height: clamp(200px, 35vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, transparent 70%);
  bottom: 20%;
  left: 8%;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.8s ease both;
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  max-width: 900px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  max-width: 430px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.9;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 52px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 60px);
  margin-top: clamp(60px, 8vw, 100px);
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s 0.4s ease both;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-section {
  padding: var(--pad-y) var(--pad-x);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  margin-top: 56px;
}

.about-text p {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.95;
  margin-bottom: 18px;
}
.about-text p strong {
  color: var(--white);
  font-weight: 400;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 60px;
  background: var(--gold);
}
.about-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tag {
  border: 1px solid var(--border);
  padding: 5px 14px;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── PROJECTS ────────────────────────────────────────────── */
.projects-section {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg2);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
  flex-wrap: wrap;
  gap: 20px;
}
.projects-header-note {
  color: var(--muted);
  font-size: 0.75rem;
  max-width: 280px;
  text-align: right;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}
.project-card:hover {
  background: #161c2a;
}
.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.project-card:hover::after {
  transform: scaleX(1);
}

.project-num {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  margin-bottom: 28px;
}
.project-icon {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.project-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.project-domain {
  font-size: 0.6875rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.project-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  padding-bottom: 32px; /* space for arrow */
}
.project-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.project-card:hover .project-arrow {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* ── SERVICES ────────────────────────────────────────────── */
.services-section {
  padding: var(--pad-y) var(--pad-x);
}

.services-list {
  margin-top: 52px;
  border-top: 1px solid var(--border);
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding-left 0.3s;
}
.service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--gold);
  opacity: 0.05;
  transition: width 0.4s;
}
.service-item:hover {
  padding-left: 20px;
}
.service-item:hover::before {
  width: 100%;
}

.service-num {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  flex-shrink: 0;
}
.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
}
.service-desc {
  font-size: 0.6875rem;
  color: var(--muted);
  max-width: 260px;
  text-align: right;
}

/* ── TRADING ─────────────────────────────────────────────── */
.trading-section {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg2);
}

.trading-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.trading-visual {
  position: relative;
  height: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.chart-label {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulsedot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 8px;
  animation: pulse 2s infinite;
}

.chart-line {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 0 24px;
}
.chart-line svg {
  width: 100%;
  display: block;
}

.ticker-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(201, 168, 76, 0.07);
  border-top: 1px solid var(--border);
  padding: 10px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  gap: 36px;
  animation: scrollTicker 22s linear infinite;
  width: max-content;
  padding: 0 16px;
}
.ticker-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.6875rem;
  white-space: nowrap;
}
.ticker-pair  { color: var(--white); }
.ticker-price { color: var(--gold); }
.ticker-change.up   { color: #4caf84; }
.ticker-change.down { color: #e05c5c; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-section {
  padding: var(--pad-y) var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.contact-section .u-section-label {
  justify-content: center;
}
.contact-section .u-section-label::after {
  display: none;
}
.contact-section .u-section-label::before {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold-dim);
}
.contact-section .u-section-title {
  margin: 0 auto;
  max-width: 680px;
}

.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 3.25rem);
  font-weight: 300;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: block;
  margin-top: 40px;
  transition: color 0.2s;
}
.contact-email:hover {
  color: var(--gold-lt);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}
.contact-link {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  padding: 28px var(--pad-x);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.6875rem;
  color: var(--muted);
}
.footer-reg {
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.footer-reg span {
  color: var(--gold-dim);
}

/* ── KEYFRAMES ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

@keyframes scrollTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── RESPONSIVE — TABLET (≤900px) ───────────────────────── */
@media (max-width: 900px) {
  .about-grid      { grid-template-columns: 1fr; }
  .projects-grid   { grid-template-columns: 1fr 1fr; }
  .trading-inner   { grid-template-columns: 1fr; }
  .projects-header-note { text-align: left; }
  .service-desc    { display: none; }
  .service-item    { grid-template-columns: 60px 1fr; }
}

/* ── RESPONSIVE — MOBILE (≤600px) ───────────────────────── */
@media (max-width: 600px) {
  /* Nav */
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero-stats { gap: 28px; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; gap: 12px; }
  .projects-header-note { display: none; }
  .project-arrow { display: none; }

  /* Services */
  .service-item { padding: 24px 0; }

  /* Trading */
  .trading-visual { height: 260px; }

  /* Footer */
  footer { justify-content: center; text-align: center; }
}
