@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Manrope:wght@600;700;800&display=swap');

:root {
  --slate-deep: #2F4156;
  --slate-mid: #3E5570;
  --slate-light: #5C7A99;
  --slate-pale: #8AAAC0;
  --slate-ghost: #B8C8D8;
  --bg: #EFF3F7;
  --bg-card: #FFFFFF;
  --bg-card-muted: #F4F7FA;
  --text-primary: #1A1A2E;
  --text-secondary: #5A5A72;
  --text-muted: #8A8AA0;
  --border: #C8D4DE;
  --border-dashed: #A8B8C8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(125deg, #C8DCEE, #E6EEF8, #C4D6EE, #D0D8F2, #EAF2FA, #C2DCE8, #D4DCF0, #EEF4FC, #C8DCEE);
  background-size: 600% 600%;
  animation: gradientShift 14s ease infinite;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 3rem;
}

.page-frame {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 12px 80px rgba(47, 65, 86, 0.32), 0 4px 24px rgba(47, 65, 86, 0.16);
  border-radius: 14px;
  border: 1px solid rgba(47, 65, 86, 0.1);
}

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

/* NAV */
.nav {
  background: var(--slate-deep);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 14px 14px 0 0;
}

.nav-brand {
  font-family: 'Manrope', sans-serif;
  color: var(--bg);
  font-size: 18px;
  letter-spacing: 0.01em;
}

.nav-clock {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-clock-time {
  color: var(--bg);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.nav-clock-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-ghost);
}

/* HERO */
.hero {
  background: var(--slate-deep);
  padding: 4rem 2.5rem 4.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--slate-light);
  flex-shrink: 0;
  animation: fadeIn 0.6s ease both;
}

.hero-text { animation: slideUp 0.6s ease 0.1s both; }

.hero-name {
  font-family: 'Manrope', sans-serif;
  color: var(--bg);
  font-size: 32px;
  line-height: 1.2;
}

.nav-location {
  font-size: 12px;
  font-weight: 400;
  color: var(--slate-ghost);
  margin-left: 8px;
}

.nav-updated {
  font-size: 12px;
  font-weight: 400;
  color: var(--slate-ghost);
  margin-left: 12px;
}

.hero-title {
  color: var(--slate-pale);
  font-size: 14px;
  font-weight: 300;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.hero-bio {
  color: #C8D8E4;
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.7;
  max-width: 460px;
}

.hero-edu {
  color: var(--slate-pale);
  font-size: 12px;
  font-weight: 300;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.hero-links {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero-link {
  background: var(--slate-mid);
  color: #C8D8E4;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
  border: 0.5px solid transparent;
}

.hero-link:hover {
  background: var(--slate-light);
  color: var(--bg);
}

.hero-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* FEATURED */
.featured {
  background: var(--slate-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2.5rem 0;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.featured-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.featured-content {
  max-width: 55%;
  padding-bottom: 3rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.featured-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--slate-light);
  padding: 3px 10px;
  border-radius: 20px;
}

.featured-platform {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-ghost);
}

.featured-name {
  font-family: 'Manrope', sans-serif;
  color: var(--bg);
  font-size: 40px;
  line-height: 1.1;
}

.featured-desc {
  color: #C8D8E4;
  font-size: 14px;
  line-height: 1.7;
  max-width: 420px;
  margin-top: 12px;
}

.featured-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 8px 16px;
}

.featured-stars {
  color: #FBBC05;
  font-size: 16px;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(251, 188, 5, 0.5);
}

.featured-rating-label {
  font-size: 12px;
  font-weight: 500;
  color: #C8D8E4;
  letter-spacing: 0.02em;
}

.featured-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.featured-btn-primary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg);
  font-size: 13px;
  font-weight: 400;
  padding: 9px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
  white-space: nowrap;
}

.featured-btn-primary:hover { background: rgba(255, 255, 255, 0.16); }

.featured-btn-secondary {
  color: var(--slate-ghost);
  font-size: 13px;
  font-weight: 400;
  padding: 9px 4px;
  border-bottom: 1px solid var(--slate-light);
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.featured-btn-primary:hover { opacity: 0.85; }
.featured-btn-secondary:hover { color: var(--bg); border-color: var(--slate-ghost); }

/* MOCKUP */
.featured-visual {
  position: absolute;
  right: 20px;
  top: -60px;
  z-index: 10;
}

.mockup-window {
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.35), 0 12px 32px rgba(0,0,0,0.15);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}

.mockup-titlebar {
  background: #fff;
  border-bottom: 0.5px solid #e0e0e0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-titlebar-name {
  font-size: 12px;
  font-weight: 600;
  color: #222;
  font-family: 'Inter', sans-serif;
}

.mockup-titlebar-actions {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 4px;
}

.mockup-body {
  background: #F2F4F8;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.vb-prompt {
  font-size: 11px;
  color: #666;
  text-align: center;
}

.vb-analyze-btn {
  background: #2563EB;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.vb-progress-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vb-progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vb-progress-label {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #999;
  width: 52px;
  flex-shrink: 0;
}

.vb-progress-bar {
  flex: 1;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

.vb-progress-fill {
  height: 100%;
  background: #2563EB;
  border-radius: 2px;
}

.vb-progress-count {
  font-size: 8px;
  color: #999;
  flex-shrink: 0;
}

.vb-insight-card {
  background: #fff;
  border: 0.5px solid #dde;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vb-insight-text {
  font-size: 9.5px;
  line-height: 1.55;
  color: #222;
  font-family: 'Inter', sans-serif;
}

.vb-insight-section-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2563EB;
  margin-top: 2px;
}

.vb-insight-summary {
  font-size: 9.5px;
  line-height: 1.55;
  color: #555;
  font-family: 'Inter', sans-serif;
}

.vb-warn-label {
  color: #C2410C;
}

.vb-warn-card {
  border-left: 3px solid #F97316;
  background: #FFF7ED;
  border-radius: 0 6px 6px 0;
  padding: 8px 10px;
}

.vb-confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
}

.vb-confidence-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #666;
  font-family: 'Inter', sans-serif;
}

.vb-confidence-badge {
  font-size: 9px;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 2px 8px;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 600px) {
  .featured { padding: 2rem 1.25rem 0; }
  .featured-name { font-size: 28px; }
  .featured-visual { display: none; }
}

/* SECTIONS */
.section {
  padding: 2.5rem 2.5rem;
}

.section-compact {
  padding: 3rem 0 0;
  margin-top: 0;
}

.section-compact .sponsor-card {
  margin-top: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* PROJECTS */
#work {
  padding-top: calc(2.5rem + 50px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--border);
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.project-card-logo {
  position: absolute;
  bottom: -35px;
  right: -35px;
  width: 170px;
  height: 170px;
  object-fit: contain;
  display: block;
  opacity: .2;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translate(0, 0);
  pointer-events: none;
  z-index: 0;
}

.project-card:hover .project-card-logo {
  opacity: .5;
  transform: translate(-15px, -15px);
}

.project-card > p,
.project-card > h2,
.project-card > span {
  position: relative;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 65, 86, 0.1);
}

.project-card.coming-soon {
  background: var(--bg-card-muted);
  border: 0.5px dashed var(--border-dashed);
}

.project-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.project-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 8px;
}

.coming-soon .project-tag { color: var(--slate-pale); }

.project-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.coming-soon .project-name { color: var(--slate-light); }

.project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.55;
}

.coming-soon .project-desc { color: var(--text-muted); }

.project-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--slate-deep);
  font-weight: 500;
  transition: color 0.2s;
}

.project-link:hover { color: var(--slate-light); }
.coming-soon .project-link { color: var(--slate-pale); }

/* DIVIDER */
.divider {
  height: 0.5px;
  background: var(--border);
  margin: 0 2.5rem;
}

/* WRITING */
.writing-list { display: flex; flex-direction: column; }

.writing-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
  transition: opacity 0.2s;
}

.writing-item:last-child { border-bottom: none; }
.writing-item:hover { opacity: 0.75; }

.writing-platform {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate-light);
  min-width: 65px;
  padding-top: 2px;
  flex-shrink: 0;
}

.writing-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.writing-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.5;
}

.writing-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* SPONSOR */
.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.sponsor-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-light);
  margin-bottom: 4px;
}

.sponsor-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 460px;
}

.sponsor-card-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.sponsor-btn-primary {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-deep);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.sponsor-btn-primary:hover { opacity: 0.6; }

.sponsor-btn-secondary {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.sponsor-btn-secondary:hover { color: var(--slate-deep); }

/* SUBSCRIBE */
.subscribe-block {
  background: var(--slate-deep);
  margin: 2rem 2.5rem 0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

[data-beehiiv-form] {
  width: 100%;
  max-width: 480px;
  margin-bottom: -1rem;
}

.subscribe-title {
  font-family: 'Manrope', sans-serif;
  color: var(--bg);
  font-size: 20px;
}

.subscribe-desc {
  color: var(--slate-pale);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.subscribe-input {
  flex: 1;
  background: var(--slate-mid);
  border: 0.5px solid var(--slate-light);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  color: var(--bg);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-input::placeholder { color: var(--slate-pale); }
.subscribe-input:focus { border-color: var(--slate-ghost); }

.subscribe-btn {
  background: var(--bg);
  color: var(--slate-deep);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.subscribe-btn:hover { opacity: 0.85; }

/* FOOTER */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: .75rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  border-radius: 0 0 14px 14px;
}

.footer-name {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--slate-deep); }

/* ANIMATIONS */
@keyframes gradientShift {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 100% 25%; }
  50%  { background-position: 75% 100%; }
  75%  { background-position: 25% 75%; }
  100% { background-position: 0% 0%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  body { padding: 1.5rem 0.75rem; }
  .nav { padding: 0 1.25rem; }
  .nav-clock-time { font-size: 12px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 2.5rem 1.25rem 3rem; gap: 1.5rem; }
  .hero-name { font-size: 26px; }
  .section { padding: 2rem 1.25rem; }
  .divider { margin: 0 1.25rem; }
  .subscribe-block { margin: 1.5rem 1.25rem; }
  .subscribe-form { flex-direction: column; }
  .footer { padding: 1.25rem 1.25rem; flex-direction: column; gap: 1rem; text-align: center; }
  .projects-grid { grid-template-columns: 1fr; }
}
