:root {
  --navy: #0f1f3d;
  --navy-light: #1c3566;
  --accent: #2f6fed;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #1a1f2b;
  --text-muted: #5b6472;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 48px 6vw 80px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6vw;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.logo span {
  font-weight: 400;
  opacity: 0.75;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-menu a:hover {
  color: #fff;
}

.nav-cta {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

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

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--navy);
    padding: 20px 6vw 28px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .nav-menu.is-open {
    max-height: 320px;
    opacity: 1;
  }

  .nav-cta {
    margin-top: 4px;
  }
}

.hero-content {
  max-width: 640px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.35);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.link-arrow {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  color: var(--accent);
}

.section-lead {
  color: var(--text-muted);
  max-width: 640px;
  margin: -16px 0 32px;
}

main {
  padding: 0 6vw;
}

section {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 0;
  border-bottom: 1px solid #e7eaf0;
}

.contact {
  border-bottom: none;
  text-align: center;
}

h2 {
  font-size: 1.75rem;
  margin: 0 0 32px;
}

.contact h2 {
  margin-bottom: 12px;
}

.contact p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.code-window {
  background: #1a1e2b;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 31, 61, 0.25);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #12151f;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-window-title {
  margin-left: 12px;
  color: #8b93a7;
  font-size: 0.85rem;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
}

.code-window-body {
  margin: 0;
  padding: 28px;
  min-height: 340px;
  color: #a6e3a1;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-window-body::after {
  content: "▋";
  color: #a6e3a1;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.skills-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.skills-group h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--navy);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: var(--bg-alt);
  border: 1px solid #e0e4ec;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text);
}

.project-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 36px;
}

.project-info h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.project-info p {
  margin: 0 0 24px;
  color: var(--text-muted);
  max-width: 640px;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.founder {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.founder-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.founder-bio h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.founder-bio p {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.founder-bio p + p {
  margin-top: 16px;
}

@media (max-width: 560px) {
  .founder {
    flex-direction: column;
  }
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.credential-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
}

.credential-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.credential-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.credential-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.credential-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.credential-card a:hover {
  text-decoration: underline;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.why-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
}

.why-item p {
  margin: 0;
  color: var(--text-muted);
}

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

.process-step {
  position: relative;
  padding-top: 8px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 18px 24px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.about p {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about p + p {
  margin-top: 16px;
}

.contact-details {
  font-size: 1.05rem;
}

.contact-details a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

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

footer {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 56px 6vw 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e4ec;
}

.footer-brand p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-contact p {
  margin: 0 0 10px;
}

.footer-copy {
  text-align: center;
  padding-top: 24px;
  margin: 0;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
}
