/* Bedrock Intel — stock landing page */
:root {
  --bg-deep: #0a0e17;
  --bg-elevated: #121a28;
  --bg-card: #151f2e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-muted: #8b95a8;
  --accent: #c9a25c;
  --accent-dim: rgba(201, 162, 92, 0.15);
  --positive: #3dcc9c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font-display: "Noto Serif KR", serif;
  --font-sans: "Noto Sans KR", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.header,
.footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  user-select: none;
}

.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent) 0%, #8b6914 100%);
  box-shadow: 0 4px 16px rgba(201, 162, 92, 0.35);
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 4vw 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 92, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(61, 204, 156, 0.06), transparent);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.hero__accent {
  color: var(--accent);
  font-style: normal;
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__trust li {
  position: relative;
  padding-left: 1.1rem;
}

.hero__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 8px var(--positive);
}

/* Chart card */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.chart-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.chart-card__tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.chart-card__change {
  font-size: 0.85rem;
  font-weight: 600;
}

.chart-card__change--up {
  color: var(--positive);
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.chart-line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chart-card__live {
  color: var(--positive);
  font-weight: 600;
}

.chart-card__live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--positive);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 0.6rem;
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.section__head--light p {
  color: rgba(255, 255, 255, 0.65);
}

/* Features */
.features {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(201, 162, 92, 0.35);
  transform: translateY(-2px);
}

.feature-card__icon {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Markets */
.markets {
  background: linear-gradient(180deg, #0d121c 0%, #0a0e17 100%);
}

.stat-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid rgba(201, 162, 92, 0.2);
  text-align: center;
}

.stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat__value--pos {
  color: var(--positive);
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 800px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: rgba(201, 162, 92, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 162, 92, 0.15);
}

.price-card__name {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.price-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.price-card__price .currency {
  font-size: 1rem;
  vertical-align: super;
  margin-right: 0.15rem;
}

.price-card__price .period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.price-card__list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--positive);
  opacity: 0.85;
}

/* Footer */
.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: #080b12;
}

.footer__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 2rem;
  }
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer__muted {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__legal {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 52ch;
}

@media (min-width: 640px) {
  .footer__legal {
    text-align: right;
    justify-self: end;
  }
}
