:root {
  /* Base palette: light, neutral, with #020617 as brand accent */
  --bg: #f5f5f6;
  --bg-soft: #f9fafb;
  --bg-elevated: #ffffff;
  --border-subtle: #e5e7eb;
  --border-strong: #d4d4d8;
  --text-main: #020617;      /* from your icon theme */
  --text-muted: #6b7280;
  --accent: #020617;         /* brand accent from icon */
  --accent-soft: #e2e8f0;
  --accent-strong: #020617;
  --badge: #020617;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shell-width: 1080px;
  --transition-fast: 0.18s ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #f9fafb 0, #f5f5f6 40%, #e5e7eb 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout */

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

main {
  padding-bottom: 3rem;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

/* Optional but recommended */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #020617; /* brand color */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: radial-gradient(circle at 15% 15%, #1d4ed8 0, #020617 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.8);
}

.brand-icon {
  width: 50px;
  height: 50px;
  display: block;
}


.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f9fafb;
}

.brand-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}
.brand-tagline::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  margin-right: 0.45rem;
  transform: translateY(1px);
}


.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.main-nav a {
  position: relative;
  color: #d1d5db;
  padding-bottom: 0.1rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 999px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  transition: width var(--transition-fast);
}

.main-nav a:hover {
  color: #f9fafb;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(156, 163, 175, 0.85);
  font-size: 0.8rem;
  font-weight: 500;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.header-cta:hover {
  border-color: #38bdf8;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.4rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle span + span {
  margin-top: 4px;
}

.nav-toggle.active span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* Hero */

.hero {
  padding-block: 2.8rem 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: start;
}

.hero-main {
  max-width: 32rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.hero-title {
  margin-top: 0.9rem;
  font-size: clamp(2.1rem, 3.1vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
}


.hero-title span {
  background: linear-gradient(120deg, #0ea5e9, #6366f1, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}


.hero-text {
  margin-top: 1rem;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn {
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn-primary {
  background: var(--accent-strong);
  color: #f9fafb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--accent-strong);
}

.hero-meta {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  font-size: 0.82rem;
}

.hero-meta dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.hero-meta dd {
  margin: 0;
}

/* Hero side */

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow-soft);
}

.hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
}

.chip {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  padding: 0.16rem 0.6rem;
  font-size: 0.75rem;
  background: var(--bg-soft);
  color: var(--text-main);
}

.hero-card-console {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

.console {
  background: #020617;
  color: #e5e7eb;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  overflow-x: auto;
  margin: 0;
}

.console-note {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding-block: 2.6rem;
  border-top: 1px solid var(--border-subtle);
}

.section-contact {
  background: var(--bg-soft);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-main);
}

.section-header p {
  max-width: 28rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Grids & cards */

.grid-2-even {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.card-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
}

.card-list li + li {
  margin-top: 0.4rem;
}

/* Projects */

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--badge);
  color: #f9fafb;
}

.badge-muted {
  background: #4b5563;
}

.tag-row {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.tag-row li {
  padding: 0.12rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.tag-row-wrap {
  margin-top: 0.6rem;
}

.project-footer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Process */

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 1.75rem;
}

.process-summary p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.process-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
}

.process-summary li + li {
  margin-top: 0.4rem;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.step {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 0.9rem 0.95rem;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-strong);
}

.step h3 {
  font-size: 0.9rem;
  margin: 0.15rem 0 0.25rem;
}

.step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 2fr);
  gap: 1.75rem;
}

.contact-form {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1.25rem 1.05rem;
  box-shadow: var(--shadow-soft);
}
.contact-details dt {
  font-weight: 600;
}
.contact-badges li {
  font-size: 0.78rem;
  padding: 0.22rem 0.6rem;
  border-radius: 8px;
}
.contact-badges li {
  background: rgba(2, 6, 23, 0.07);
  border: 1px solid rgba(2, 6, 23, 0.18);
}

.field-row {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

input,
textarea,
select {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: var(--bg-soft);
  color: var(--text-main);
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #a1a1aa;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.15);
  background: #ffffff;
}

.contact-footer {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
}

.contact-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Contact aside */

.contact-aside-box {
  height: 100%;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-aside-box h3 {
  font-size: 0.95rem;
  margin: 0;
}

.contact-aside-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-details {
  margin: 0.25rem 0 0;
  padding: 0;
}

.contact-details div {
  margin-bottom: 0.4rem;
}

.contact-details dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.contact-details dd {
  margin: 0.05rem 0 0;
  font-size: 0.9rem;
}

.contact-details a {
  color: var(--accent-strong);
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #020617;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  }

  .process-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .header-inner {
    height: 60px;
  }

  .main-nav {
    position: fixed;
    inset-inline: 1.25rem;
    top: 60px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    padding: 0.7rem 0.9rem;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.78rem;
    transform-origin: top center;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

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

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-main {
    max-width: none;
  }

  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2-even {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .shell {
    padding-inline: 1.1rem;
  }

  .hero {
    padding-block: 2.3rem 2rem;
  }

  .section {
    padding-block: 2.2rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
