/* YINGHARD - Static Site */
:root {
  --bg: #fafbff;
  --card-bg: #fff;
  --text: #1a1d2e;
  --text-muted: #5a5f7a;
  --text-light: #8b8faa;
  --accent: #5b5ef7;
  --accent2: #00c6ac;
  --accent3: #ff6b6b;
  --grad-1: linear-gradient(135deg, #5b5ef7 0%, #8b5cf6 50%, #a78bfa 100%);
  --grad-2: linear-gradient(135deg, #00c6ac 0%, #00d4d4 100%);
  --grad-3: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  --grad-hero: linear-gradient(160deg, #0f0c29 0%, #1a1040 30%, #302b63 60%, #24243e 100%);
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 30px rgba(91,94,247,.12);
  --radius: 12px;
  --max-w: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans SC", sans-serif;
  color: var(--text); line-height: 1.7; background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Header ---- */
.topbar {
  background: rgba(15,12,41,.95); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}
.logo {
  font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none;
  letter-spacing: 1.5px;
  background: var(--grad-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.7); text-decoration: none; padding: .45rem .8rem;
  border-radius: 8px; font-size: .84rem; font-weight: 500; transition: .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.08); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 1px; }

/* ---- Hero ---- */
.hero {
  background: var(--grad-hero); color: #fff; text-align: center;
  padding: 7rem 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(91,94,247,.12) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 70%, rgba(0,198,172,.1) 0%, transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(139,92,246,.06) 0%, transparent 60%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 3.2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: .75rem; }
.hero h1 span { background: var(--grad-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.55); max-width: 550px; margin: 0 auto 2rem; }
.hero .btn { display: inline-block; background: var(--grad-1); color: #fff; padding: .8rem 2.2rem; border-radius: 50px; font-weight: 600; text-decoration: none; font-size: .92rem; transition: .25s; box-shadow: 0 4px 24px rgba(91,94,247,.4); }
.hero .btn:hover { transform: translateY(-3px); box-shadow: 0 8px 36px rgba(91,94,247,.55); }

/* ---- Sections ---- */
.sec { padding: 5rem 0; }
.sec-dark { background: #0f0c29; color: #fff; }
.sec-hd { text-align: center; margin-bottom: 3.5rem; }
.sec-hd h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: .5rem; }
.sec-dark .sec-hd h2 { color: #fff; }
.sec-hd p { color: var(--text-light); max-width: 600px; margin: 0 auto; }
.sec-dark .sec-hd p { color: rgba(255,255,255,.5); }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-bg); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.04); transition: .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-1); opacity: 0; transition: .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.1rem;
}
.icon-purple { background: rgba(91,94,247,.1); }
.icon-teal { background: rgba(0,198,172,.1); }
.icon-coral { background: rgba(255,107,107,.1); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* Stats */
.stats-row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; text-align: center; padding: 3.5rem 0; }
.stat-n { font-size: 2.6rem; font-weight: 800; background: var(--grad-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; }
.stat-l { font-size: .82rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.5px; margin-top: .3rem; }

/* CTA */
.cta {
  background: var(--grad-1); color: #fff; text-align: center; padding: 4rem 0;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.1) 0%, transparent 50%);
}
.cta > * { position: relative; }
.cta h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.cta p { opacity: .8; margin-bottom: 1.5rem; }
.cta .btn { display: inline-block; background: #fff; color: #5b5ef7; padding: .7rem 2rem; border-radius: 50px; font-weight: 700; text-decoration: none; font-size: .9rem; }

/* ---- Inner Pages ---- */
.page-hero {
  background: var(--grad-hero); color: #fff; text-align: center; padding: 4rem 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(91,94,247,.1) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 80%, rgba(0,198,172,.08) 0%, transparent 50%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.4rem; font-weight: 700; }

.page-body { padding: 4rem 0; max-width: 860px; margin: 0 auto; }
.page-body .intro {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 2rem; padding: 1.5rem 2rem;
  background: #fff; border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.page-body h2 {
  font-size: 1.5rem; font-weight: 700; margin: 3rem 0 1rem;
  padding-left: 1rem; border-left: 4px solid var(--accent2);
  color: var(--text);
}
.page-body h3 {
  font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .5rem;
  padding: .5rem 0; color: #5b5ef7;
}

.page-body p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.85; }

/* Highlight box */
.highlight {
  background: linear-gradient(135deg, rgba(91,94,247,.06) 0%, rgba(0,198,172,.06) 100%);
  border: 1px solid rgba(91,94,247,.12); border-radius: var(--radius);
  padding: 1.5rem 2rem; margin: 2rem 0;
}
.highlight h3 { margin-top: 0; padding-top: 0; }
.highlight p:last-child { margin-bottom: 0; }

/* Feature rows */
.feat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin: 2rem 0;
}
.feat-item {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); display: flex; gap: 1rem; align-items: flex-start;
  transition: .25s;
}
.feat-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.feat-item .fi-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.feat-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.feat-item p { font-size: .85rem; margin-bottom: 0; }

/* Bullet list */
.bullet-list { list-style: none; margin: 1.5rem 0; }
.bullet-list li {
  padding: .7rem 0 .7rem 2rem; position: relative; color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.bullet-list li:last-child { border-bottom: 0; }
.bullet-list li::before {
  content: ''; position: absolute; left: .2rem; top: 1.1rem;
  width: 8px; height: 8px; background: var(--accent2); border-radius: 2px;
  transform: rotate(45deg);
}
.bullet-list li strong { color: var(--text); }

/* Contact cards */
.con-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin: 2rem 0; }
.con-cards .card { text-align: center; padding: 2rem 1.5rem; }
.con-cards .card .icon { margin: 0 auto 1rem; }

/* ---- Footer ---- */
.footer {
  background: #0f0c29; color: rgba(255,255,255,.6); padding: 3.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: .75rem; }
.footer-grid a { display: block; color: rgba(255,255,255,.45); text-decoration: none; padding: .2rem 0; font-size: .88rem; transition: .2s; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: .88rem; margin-bottom: .2rem; line-height: 1.6; }
.footer-bot { border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.5rem; text-align: center; font-size: .8rem; color: rgba(255,255,255,.25); }

/* Page dividers */
.divider {
  text-align: center; margin: 3rem 0; position: relative;
}
.divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--grad-1); opacity: .2;
}
.divider span {
  display: inline-block; background: var(--bg); padding: 0 1.5rem;
  position: relative; font-size: 1.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4, .con-cards, .feat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 1.5rem; }
  .hero { padding: 4rem 0; }
  .hero h1 { font-size: 2rem; }
  .sec { padding: 3rem 0; }
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(15,12,41,.98); flex-direction: column; padding: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.04); }
}
@media (min-width: 861px) { .nav-links { display: flex !important; } }
