:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 14px;
}

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

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 248, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.hero {
  padding: 90px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0 0 18px;
}

.hero-text p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f7 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.section {
  padding: 30px 0 70px;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 28px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.market-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.market-item:last-child {
  border-bottom: none;
}

.asset-name {
  font-weight: 600;
}

.asset-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
}

.change-up {
  color: #0f9f6e;
  font-weight: 600;
}

.change-down {
  color: #dc2626;
  font-weight: 600;
}

.sale-card {
  overflow: hidden;
  padding: 0;
}

.sale-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.sale-content {
  padding: 18px;
}

.sale-content p {
  margin: 8px 0;
}

.blog-preview,
.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  background: var(--text);
  color: white;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #111827;
}

.placeholder-box {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
}

.site-footer {
  padding: 30px 0 60px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-inner,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 60px;
  }
}
#fx-rates-list {
  margin-top: 10px;
}

#fx-rates-list .market-item {
  padding: 14px 0;
}

.price {
  text-align: right;
}
.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.market-stack {
  display: grid;
  gap: 24px;
}

.widget-card {
  padding: 18px;
  overflow: hidden;
}

.widget-frame {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  min-height: 380px;
}

.card-tight {
  padding: 18px;
}

.market-item {
  align-items: flex-start;
}

.price {
  text-align: right;
  white-space: nowrap;
}

#fx-rates-list {
  margin-top: 6px;
}

#fx-rates-list .market-item {
  padding: 12px 0;
}

.section-subtitle {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .widget-frame {
    min-height: 320px;
  }
}
.widget-frame {
  min-height: 520px;
}

@media (max-width: 900px) {
  .widget-frame {
    min-height: 420px;
  }
}
