:root {
  color-scheme: light;
  --ink: #07111f;
  --muted: #566272;
  --paper: #f7fbfa;
  --band: #eaf6f1;
  --line: #d5e3df;
  --green: #087653;
  --green-dark: #054a35;
  --blue: #1f5fbf;
  --red: #b9403a;
  --gold: #c98a12;
  --aqua: #dff7ef;
  --slate: #162333;
  --white: #ffffff;
  --shadow: 0 26px 70px rgba(11, 28, 45, 0.16);
  --card-shadow: 0 16px 36px rgba(11, 28, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfefd 0%, var(--paper) 38%, #f3faf7 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(247, 251, 250, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1120px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), #1e3a35);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(8, 118, 83, 0.18);
}

.nav-links {
  gap: 0.35rem;
  border: 1px solid rgba(213, 227, 223, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.24rem;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--ink);
  color: var(--white);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.76fr);
  align-items: center;
  gap: 3.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto 48%;
  height: 78%;
  border: 1px solid rgba(213, 227, 223, 0.7);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(223, 247, 239, 0.42)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(8, 118, 83, 0.08) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(31, 95, 191, 0.06) 32px);
  pointer-events: none;
}

.hero-content,
.hero-visual {
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.2rem;
  font-size: 4rem;
  line-height: 1.02;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.55rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-copy,
.section-heading p,
.contact p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.4rem 0 1.6rem;
}

.hero-badges span {
  border: 1px solid rgba(213, 227, 223, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--slate);
  padding: 0.42rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 850;
}

.hero-actions,
.contact-actions,
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
.store-links a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), #0aa06f);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(8, 118, 83, 0.22);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary,
.store-links a {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(11, 28, 45, 0.05);
}

.button.secondary:hover,
.store-links a:hover {
  border-color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.phone-frame {
  width: 290px;
  border: 10px solid #1b2028;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-frame-main {
  position: absolute;
  right: 4rem;
  top: 0.75rem;
  min-height: 520px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
}

.phone-frame-side {
  position: absolute;
  right: 0;
  bottom: 1rem;
  width: 210px;
  min-height: 310px;
  padding: 1rem;
  transform: rotate(7deg);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.phone-top {
  width: 76px;
  height: 8px;
  margin: 0 auto 1.4rem;
  border-radius: 999px;
  background: #2f3540;
}

.app-stack {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf9f4, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(213, 227, 223, 0.75);
}

.app-stack img,
.app-card img,
.phone-frame-side img {
  border-radius: 8px;
}

.app-stack span,
.status-row,
.stat-item span,
.skill-block p,
.timeline p,
.app-card p,
.site-footer {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.metric-grid span {
  min-height: 86px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b7a53, #49b388);
}

.metric-grid span:nth-child(2) {
  background: linear-gradient(135deg, #1f5fbf, #83b4ff);
}

.metric-grid span:nth-child(3) {
  background: linear-gradient(135deg, #b9403a, #ff938b);
}

.metric-grid span:nth-child(4) {
  background: linear-gradient(135deg, #d8a02b, #ffd16a);
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.phone-frame-side p {
  margin: 1rem 0 0;
  font-weight: 800;
}
