:root {
  --bg: #f7f9fc;
  --bg-soft: #eef2f8;
  --text: #1d1d1f;
  --text-muted: #667085;
  --accent: #0071e3;
  --accent-2: #0a84ff;
  --accent-3: #0066cc;
  --border: #e5e5e7;
  --card: #ffffff;
  --ok: #34c759;
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 420px at 10% -20%, rgba(10,132,255,.07), transparent 60%),
    radial-gradient(900px 360px at 90% 0%, rgba(0,113,227,.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", Inter, Roboto, sans-serif;
}

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

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, #0f172a 0%, #111f3d 60%, #1b2a57 100%);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(125, 211, 252, .22);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
}

.logo-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  color: #f8fafc;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text {
  font-weight: 600;
  letter-spacing: .2px;
}

.menu {
  display: flex;
  gap: 20px;
  color: rgba(226, 232, 240, .82);
  font-size: 14px;
}

.menu a:hover,
.menu a.active {
  color: #f8fafc;
}

.hero {
  padding: 92px 0 70px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 72%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: linear-gradient(110deg, transparent 32%, rgba(10,132,255,.12) 47%, rgba(0,113,227,.18) 52%, transparent 66%);
  transform: translateX(-35%);
  animation: subtle-sheen 7.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes subtle-sheen {
  0%, 100% { transform: translateX(-40%); opacity: .45; }
  50% { transform: translateX(30%); opacity: .82; }
}

.hero h1 {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 980px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-subtitle {
  color: #424245;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.32;
  margin: 0 0 16px;
  font-weight: 500;
}
.hero-emphasis-a {
  color: #0a66cc;
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 780px;
  margin: 0 0 30px;
  line-height: 1.55;
}

.btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid #d4dbe8;
  background: rgba(255,255,255,.92);
  color: #1d1d1f;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 500;
  transition: .2s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 3px 10px rgba(15,23,42,.05);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn:hover { transform: translateY(-1px); }

.particle-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .08;
}

.section {
  padding: 72px 0;
}

.section:nth-of-type(even) {
  background: linear-gradient(180deg, #f2f5fb 0%, #edf2f9 100%);
}

.section h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing: -0.02em;
}

.section p.lead {
  color: var(--text-muted);
  margin-top: -6px;
  font-size: 18px;
}

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

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

.card {
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(247,250,255,.86));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  transition: .22s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 24px rgba(16,24,40,.06);
}

.card:hover {
  transform: translateY(-2px);
  border-color: #c7d7ee;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 30px rgba(16,24,40,.1);
}

.icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: inline-block;
}

.muted { color: var(--text-muted); line-height: 1.65; }

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag {
  font-size: 12px;
  border: 1px solid #d0d9e8;
  color: #42526b;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f9fbff;
}

.footer {
  padding: 32px 0 50px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

.timeline {
  border-left: 2px solid #d2d2d7;
  padding-left: 16px;
  display: grid;
  gap: 16px;
}

.t-item h4 { margin: 0 0 6px; }

.skill-list { display: flex; gap: 8px; flex-wrap: wrap; }

.article { max-width: 860px; }

.article p { color: #3a3a3c; line-height: 1.9; }

.form { display: grid; gap: 10px; }

input, textarea {
  background: #fff;
  color: var(--text);
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 10px 12px;
}

textarea { min-height: 120px; }

.kpi {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.kpi .item {
  border: 1px solid #d4dbe8;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: #424245;
}

.grad-text,
.accent-text {
  color: inherit;
  background: none;
  text-shadow: none;
}

/* Home revamp: apple-like + restrained futuristic */
.home-page .hero-showcase {
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(96,165,250,.28), transparent 60%),
    radial-gradient(900px 300px at 85% 10%, rgba(167,139,250,.2), transparent 62%),
    linear-gradient(155deg, #0f172a 0%, #111827 52%, #0b1220 100%);
}
.home-page .hero-showcase h1,
.home-page .hero-showcase .hero-subtitle {
  color: #f8fafc;
}
.home-page .hero-showcase .hero-emphasis-a { color: #7dd3fc; }
.home-page .hero-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 20px;
  align-items: start;
}
.home-page .hero-main { padding-top: 4px; }
.home-page .hero-side {
  background: transparent;
  border: none;
  box-shadow: none;
}
.visual-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.hero-visual {
  width: 100%;
  max-width: 430px;
  height: auto;
  display: block;
  animation: visualFloat 6.2s ease-in-out infinite;
  transform-origin: 50% 70%;
  filter: drop-shadow(0 16px 28px rgba(56, 189, 248, .26));
}
.visual-wrap {
  position: relative;
}
@keyframes visualFloat {
  0%,100% { transform: translateY(0px) rotate(-2.2deg) scale(1); }
  50% { transform: translateY(-10px) rotate(2.2deg) scale(1.012); }
}
.home-page .section h2 {
  font-size: clamp(28px, 3.8vw, 42px);
}
.home-page .section .card h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .menu { gap: 12px; font-size: 13px; }
  .hero { padding: 72px 0 56px; }
  .section { padding: 56px 0; }
  .home-page .hero-layout { grid-template-columns: 1fr; }
}
