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

:root {
  --white: #ffffff;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-muted: #f1f2f4;
  --border: #e4e4e7;
  --text-dark: #18181b;
  --text-mid: #52525b;
  --text-light: #a1a1aa;
  --accent: #27272a;
  --accent-soft: #3f3f46;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font: "Inter", system-ui, sans-serif;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

img,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.logo-dot {
  color: var(--accent-soft);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 0.6rem clamp(20px, 5vw, 60px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition),
    box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 4px 14px rgba(39, 39, 42, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  padding-inline: 0.5rem;
}

.btn-ghost:hover {
  color: var(--text-dark);
}

.btn-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-bottom: 1.25rem;
}

.hero {
  padding-block: clamp(60px, 10vw, 120px);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.badge::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-light);
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.0625rem;
  color: var(--text-mid);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--border), var(--bg));
  padding: 5px;
  box-shadow: var(--shadow-lg);
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4e4e7 0%, #d4d4d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-initials {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: -0.04em;
  user-select: none;
}

@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-image-wrap {
    order: 1;
  }

  .profile-ring {
    width: 160px;
    height: 160px;
  }

  .profile-initials {
    font-size: 2.25rem;
  }

  .hero-intro {
    margin-inline: auto;
  }

  .badge {
    justify-content: center;
  }
}

.about {
  padding-block: clamp(60px, 8vw, 100px);
  background: var(--bg);
}

.about-inner {
  max-width: 900px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 0.5rem;
}

.about-text {
  font-size: 1.0625rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-light);
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 140px;
  }
}

.projects {
  padding-block: clamp(60px, 8vw, 100px);
  background: var(--white);
  border-top: 1px solid var(--border);
}

.projects-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-muted);
  color: var(--text-mid);
  font-size: 0.85rem;
}

.projects-note code {
  font-weight: 700;
}

.project-groups {
  display: grid;
  gap: 2.75rem;
}

.project-group {
  display: grid;
  gap: 1.35rem;
}

.project-group__header {
  max-width: 640px;
}

.project-group__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.45rem;
}

.project-group__title {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.project-group__description {
  color: var(--text-mid);
  max-width: 56ch;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-image {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 244, 245, 0.9) 100%);
}

.card-browser {
  overflow: hidden;
  border-radius: 0;
  background: #111827;
  display: flex;
  flex-direction: column;
}

.card-browser__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  background: rgba(17, 24, 39, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-browser__dots {
  display: flex;
  gap: 0.35rem;
}

.card-browser__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.card-browser__url {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-browser__viewport {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.card-browser__viewport--image {
  background: linear-gradient(180deg, #f8fafc 0%, #dbe4f0 100%);
}

.card-browser__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: #ffffff;
}

.card-browser__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.card-browser__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0) 22%, rgba(15, 23, 42, 0.14) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 68%, rgba(15, 23, 42, 0.12) 100%);
}

.card-browser__fallback {
  min-height: 260px;
  padding: 1.1rem;
  display: grid;
  align-content: end;
  gap: 0.9rem;
  color: #ffffff;
}

.card-browser__fallback-pill {
  width: max-content;
  max-width: 70%;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-browser__fallback-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  max-width: 11ch;
}

.card-browser__fallback-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 30ch;
}

.card-browser__fallback--violet {
  background: radial-gradient(circle at top left, #7c3aed 0%, #312e81 48%, #111827 100%);
}

.card-browser__fallback--emerald {
  background: radial-gradient(circle at top left, #10b981 0%, #065f46 50%, #0f172a 100%);
}

.card-browser__fallback--amber {
  background: radial-gradient(circle at top left, #f59e0b 0%, #9a3412 52%, #111827 100%);
}

.card-tags {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.card-status {
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--surface-muted);
  color: var(--text-mid);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-type {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.coming-soon {
  padding-block: clamp(60px, 8vw, 100px);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.coming-inner {
  max-width: 560px;
  text-align: center;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.coming-icon {
  font-size: 0.5rem;
  color: var(--text-light);
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.coming-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.coming-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.preview-modal[hidden] {
  display: none;
}

.preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 27, 0.68);
  backdrop-filter: blur(8px);
}

.preview-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  height: min(92dvh, 980px);
  max-height: calc(100dvh - 2 * clamp(0.75rem, 2vw, 1.5rem));
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.preview-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  color: var(--text-mid);
  transition: color var(--transition), transform var(--transition);
}

.preview-modal__close:hover {
  color: var(--text-dark);
  transform: scale(1.04);
}

.preview-modal__topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.35rem;
  padding-right: 3.5rem;
  flex-wrap: wrap;
}

.preview-modal__eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.preview-modal__title {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.05;
}

.preview-modal__meta {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.preview-stage {
  flex: 1;
  min-height: 0;
  height: min(72dvh, 760px);
  background: #0f172a;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.preview-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.preview-modal__hint {
  margin-top: 0.9rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-name {
  color: var(--text-mid);
  font-weight: 600;
  transition: color var(--transition);
}

.footer-name:hover {
  color: var(--text-dark);
}

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

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .card-browser__viewport,
  .card-browser__fallback {
    min-height: 220px;
    height: 220px;
  }


  .preview-modal {
    padding: 0.5rem;
  }

  .preview-modal__dialog {
    padding: 1rem;
    height: min(94dvh, 920px);
    max-height: calc(100dvh - 1rem);
  }

  .preview-modal__topbar {
    flex-direction: column;
    padding-right: 2.8rem;
  }

  .preview-modal__launch {
    width: 100%;
  }

  .preview-stage {
    height: min(62dvh, 640px);
    border-radius: 18px;
  }
}

@media (max-width: 540px) {
  .projects-note {
    display: block;
    border-radius: var(--radius-md);
  }

  .project-groups {
    gap: 2rem;
  }

  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-modal {
    padding: 0;
    place-items: stretch;
  }

  .preview-modal__dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 0.9rem;
    border-radius: 0;
    border: none;
  }

  .preview-modal__close {
    top: 0.7rem;
    right: 0.7rem;
    width: 38px;
    height: 38px;
  }

  .preview-modal__topbar {
    gap: 0.75rem;
    padding-right: 2.9rem;
    margin-bottom: 0.55rem;
  }

  .preview-modal__meta {
    font-size: 0.82rem;
  }

  .preview-stage {
    flex: 1;
    height: auto;
    border-radius: 16px;
  }

  .preview-frame {
    height: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
