@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Sans+Display:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  color-scheme: dark;
  --bg: #07090c;
  --panel: #0d1117;
  --panel-2: #121822;
  --panel-hover: rgba(18, 24, 34, 0.6);
  --text: #f9fafb;
  --text-secondary: #e5e7eb;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.07);
  --line-active: rgba(255, 255, 255, 0.16);
  --accent: #00e699; /* Electric Mint HSL(160, 100%, 45%) */
  --accent-rgb: 0, 230, 153;
  --accent-2: #00bfff; /* Azure Blue HSL(195, 100%, 50%) */
  --accent-2-rgb: 0, 191, 255;
  --max: 1160px;
  
  /* Typography Scale */
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  left: 20px;
  top: 16px;
  z-index: 999;
  transform: translateY(-180%);
  border: 1px solid var(--accent);
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 4px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Layout Shell */
.shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Site Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Monogram Brand Mark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Noto Sans Display', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #ffffff 10%, rgba(var(--accent-rgb), 0.7) 50%, rgba(var(--accent-2-rgb), 0.7) 100%);
  color: #07090c;
  font-weight: 900;
  font-size: 1.15rem;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.15);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.3);
}

/* Primary Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Navigation CTA (Contact) */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--line-active);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.nav-cta:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
}

.nav-toggle-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 14px;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, top 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 6px; }
.nav-toggle-icon span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 98vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 140px 0 110px;
  border-bottom: 1px solid var(--line);
}

.signal-field {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  z-index: 1;
}

.hero-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.96) 0%, rgba(7, 9, 12, 0.5) 45%, rgba(7, 9, 12, 0.94) 100%),
    radial-gradient(circle at 75% 35%, rgba(var(--accent-rgb), 0.12), transparent 45%),
    radial-gradient(circle at 25% 85%, rgba(var(--accent-2-rgb), 0.12), transparent 40%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 960px;
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: 'Noto Sans Display', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

h1 {
  font-family: 'Noto Sans Display', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 7.5vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #ffffff 30%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-copy a.inline-link {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1.5px solid rgba(var(--accent-rgb), 0.4);
}

.hero-copy a.inline-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Premium Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.button-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.15), 0 0 12px rgba(var(--accent-rgb), 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line-active);
  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Studio Metrics & Trust strip */
.trust-strip {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  max-width: 640px;
}

.trust-strip li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-strip li .metric-val {
  font-family: 'Noto Sans Display', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-strip li .metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sections General */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section-muted {
  background: #090c10;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 56px;
}

h2 {
  font-family: 'Noto Sans Display', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-copy {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.section-grid,
.edge-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.section-kicker {
  position: sticky;
  top: 120px;
}

.section-kicker h2 {
  margin-bottom: 24px;
}

/* Grid & Cards (MockupLabs & Google Style) */
.insight-grid,
.build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.insight-card,
.build-card,
.edge-list article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(13, 17, 23, 0.6) 100%);
  padding: 32px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.insight-card::before,
.build-card::before,
.edge-list article::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.insight-card:hover,
.build-card:hover,
.edge-list article:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.3);
  background: var(--panel-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 1px rgba(var(--accent-rgb), 0.1);
}

.insight-card:hover::before,
.build-card:hover::before,
.edge-list article:hover::before {
  opacity: 1;
}

/* Icon Design */
.card-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--accent);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.insight-card:hover .card-icon-container,
.build-card:hover .card-icon-container {
  color: var(--text);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.card-index {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.insight-card h3,
.build-card h3 {
  font-family: 'Noto Sans Display', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.insight-card p,
.build-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.build-card-wide {
  grid-column: span 2;
}

/* Sticky layout & list for Execution Edge */
.edge-list {
  display: grid;
  gap: 16px;
}

.edge-list article {
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.edge-list article h3 {
  font-family: 'Noto Sans Display', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.edge-list article p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Portfolio Section & Showcase (Lemma) */
.portfolio-container {
  display: grid;
  gap: 36px;
}

.portfolio-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(13, 17, 23, 0.4) 100%);
  padding: 48px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(var(--accent-2-rgb), 0.08), transparent 45%);
  pointer-events: none;
}

.portfolio-card:hover {
  border-color: rgba(var(--accent-2-rgb), 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 2px rgba(var(--accent-2-rgb), 0.1);
  transform: translateY(-2px);
}

.portfolio-card-info {
  display: flex;
  flex-direction: column;
}

.portfolio-card-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.portfolio-card-head h3 {
  font-family: 'Noto Sans Display', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #c3c3c3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-meta span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-meta span:first-child {
  color: var(--accent-2);
  border-color: rgba(var(--accent-2-rgb), 0.2);
  background: rgba(var(--accent-2-rgb), 0.05);
}

.portfolio-copy {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Beautiful Showcase Visual */
.portfolio-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 280px;
  background: radial-gradient(circle at center, rgba(18, 24, 34, 0.8) 0%, rgba(7, 9, 12, 0.9) 100%);
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.portfolio-visual-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent-2);
  filter: blur(60px);
  opacity: 0.15;
  animation: pulse-glow 6s infinite alternate;
}

.portfolio-visual-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
}

.portfolio-visual-logo {
  font-family: 'Noto Sans Display', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(var(--accent-2-rgb), 0.2);
}

.portfolio-visual-tag {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.portfolio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  list-style: none;
}

.portfolio-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

/* Call to Action Section */
.cta-section {
  padding: 120px 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(var(--accent-rgb), 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(var(--accent-2-rgb), 0.04) 0%, transparent 40%),
    #090c10;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.cta-inner {
  max-width: 800px;
}

.cta-inner h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.cta-inner p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.cta-inner p strong {
  color: var(--text);
  font-weight: 600;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-family: 'Noto Sans Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  border-bottom: 2px solid rgba(var(--accent-rgb), 0.25);
  padding-bottom: 4px;
}

.email-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Site Footer */
.site-footer {
  background: #05070a;
  border-top: none;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 0;
  gap: 40px;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  font-family: 'Noto Sans Display', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-inner a:not(.footer-brand) {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner a:not(.footer-brand):hover {
  color: var(--text);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* High-performance scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom animations */
@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.12; }
  100% { transform: scale(1.15); opacity: 0.22; }
}

/* Responsive Breakpoints */
@media (max-width: 990px) {
  .portfolio-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px;
  }
  
  .portfolio-visual {
    height: 240px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: #07090c;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    z-index: 99;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 1.05rem;
  }
  
  .site-nav a::after {
    display: none;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 80px;
  }

  h1 {
    font-size: 3.4rem;
  }

  .section {
    padding: 80px 0;
  }

  .section-grid,
  .edge-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .insight-grid,
  .build-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .build-card-wide {
    grid-column: auto;
  }

  .section-kicker {
    position: static;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 40px 0;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 14px;
  }
}
