/* Sol Society — $SOLS */
* { box-sizing: border-box; }
:root {
  --bg: #0b0e14;
  --panel: #121723;
  --text: #e6e9ef;
  --muted: #a0a8b8;
  --accent: #9945FF;
  --accent-2: #14F195;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Inter, Arial, sans-serif; line-height: 1.65; }

.container { width: min(1100px, 92%); margin: 0 auto; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; position: sticky; top: 0; z-index: 20; background: rgba(11,14,20,.75); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: #0f1117; }
.brand-text { display: grid; }
.brand-text strong { font-size: 18px; letter-spacing: .5px; }
.brand-text .sub { font-size: 13px; color: var(--muted); }
.links a { margin-left: 18px; color: #dbe3ff; opacity: .9; }
.links a:hover { opacity: 1; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 52px 0; }
.hero .left h1 { font-size: clamp(34px, 6vw, 64px); margin: 0 0 8px; letter-spacing: -0.02em; }
.tag { color: var(--muted); margin-top: 0; }
.intro { background: linear-gradient(135deg, rgba(153,69,255,.12), rgba(20,241,149,.10)); padding: 14px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.hero .right img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.08); }

.btn { display: inline-block; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; margin-right: 10px; }
.btn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; box-shadow: var(--shadow); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.18); color: var(--text); }

.section { padding: 56px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
h2 { margin-top: 0; }

.tile { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; background: var(--panel); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.tile.long code { word-break: break-all; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; }
.copy { padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--text); cursor: pointer; }
.copy:hover { border-color: var(--accent-2); }

.muted { color: var(--muted); font-size: 14px; }

.footer { text-align: center; padding: 34px 0; color: var(--muted); border-top: 1px solid rgba(255,255,255,.06); margin-top: 30px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .links { display: none; }
}


.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.social {
  display: inline-block;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  min-width: 200px;
  border: 1px solid rgba(255,255,255,.15);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: transform .2s ease, background .3s ease;
}
.social:hover { transform: translateY(-2px); }
.social.x { background: linear-gradient(135deg, #1DA1F2, #0a84ff); }
.social.tg { background: linear-gradient(135deg, #0088cc, #4dc0ff); }
@media (max-width: 600px) {
  .socials { flex-direction: column; }
}


.social img.icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 10px;
  filter: brightness(0) invert(1);
}


/* ===== Mobile polish ===== */
:root {
  --tap: 48px; /* minimum touch target */
}

@media (max-width: 900px) {
  .container { width: min(100%, 94%); }
  .hero { grid-template-columns: 1fr; padding: 32px 0; }
  .hero .left h1 { font-size: clamp(28px, 9vw, 40px); }
  .btn { width: 100%; margin: 8px 0 0 0; min-height: var(--tap); }
  .tile { grid-template-columns: 1fr; gap: 10px; }
  .copy { width: 100%; min-height: var(--tap); }
  .socials { flex-direction: column; }
  .social { width: 100%; min-height: var(--tap); justify-content: center; }
  .nav { padding: max(12px, env(safe-area-inset-top)) 0 12px; }
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .hero .right img { border-radius: 14px; }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .brand-text strong { font-size: 16px; }
  .brand-text .sub { font-size: 12px; }
}


/* Ensure top-left logo presence & sizing */
.nav { position: sticky; top: 0; z-index: 999; }
.logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
@media (max-width: 900px) {
  .logo { width: 48px; height: 48px; }
}
