:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  background-color: #05070d;
  --accent: #7c5dff;
  --accent-strong: #5d7bff;
  --muted: rgba(255, 255, 255, 0.75);
  --surface: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
}

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

body {
  background: radial-gradient(circle at 20% 20%, rgba(124, 93, 255, 0.35), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(93, 201, 255, 0.3), transparent 45%),
    #04050a;
  line-height: 1.6;
  color: #f7f7ff;
}

a {
  color: var(--muted);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.hero {
  min-height: 90vh;
  padding: 2rem clamp(1.5rem, 5vw, 5rem) 4rem;
  position: relative;
  overflow: hidden;
}

.noise {
  position: absolute;
  inset: 0;
  background: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.05;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .logo__icon {
    width: 48px;
    height: 48px;
    display: block;
    flex-shrink: 0;
  }

.hero__content {
  margin-top: 5rem;
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 20% 20%, rgba(124, 93, 255, 0.2), transparent 60%),
    radial-gradient(circle at 80% 10%, rgba(93, 220, 255, 0.25), transparent 55%),
    rgba(5, 7, 13, 0.7);
  overflow: hidden;
}

.hero__copy {
  position: relative;
  max-width: 100%;
  z-index: 2;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero__tags .chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero__lede {
  max-width: 960px;
}

.hero__ticker {
  margin-top: 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.65rem 0;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 1;
  display: flex;
}

.hero__ticker-inner {
  display: inline-flex;
  width: max-content;
  animation: ticker 18s linear infinite;
  will-change: transform;
}

.hero__ticker::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 7, 13, 0), rgba(5, 7, 13, 0.4), rgba(5, 7, 13, 0));
  pointer-events: none;
}

.hero__ticker-track {
  display: inline-flex;
  flex-shrink: 0;
  gap: 2rem;
  padding-inline: 0 2rem;
  white-space: nowrap;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

.hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(124, 93, 255, 0.4), transparent 70%);
  filter: blur(60px);
  top: -20%;
  right: -10%;
  animation: float 20s ease-in-out infinite;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.hero__pulse {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  animation: pulseRing 10s ease-in-out infinite;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.hero__pulse--one {
  top: 5%;
  right: 20%;
}

.hero__pulse--two {
  bottom: 10%;
  left: 15%;
  animation-delay: 2.5s;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.3333%);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.25;
  }
}

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chip--light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f1f5ff;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-10px) translateX(6px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

.primary-btn,
.ghost-btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 93, 255, 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric__value {
  font-size: 2rem;
  font-weight: 600;
}

.metric__label {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__metrics {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 13, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero__metrics .metric__value {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

main {
  padding: 0 clamp(1.5rem, 5vw, 5rem) 4rem;
}

.section {
  padding: 5rem 0;
}

.section--accent {
  background: linear-gradient(135deg, rgba(124, 93, 255, 0.15), rgba(52, 75, 191, 0.35));
  border-radius: 32px;
  padding-inline: clamp(1rem, 4vw, 3rem);
  margin: 3rem 0;
}

.section__header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section__header--wide {
  max-width: 100%;
  width: 100%;
}

.contact-card {
  background: linear-gradient(145deg, rgba(15, 18, 32, 0.95), rgba(25, 17, 42, 0.9));
  border: 1px solid rgba(124, 93, 255, 0.2);
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 60px 120px rgba(5, 7, 13, 0.55);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem 3rem;
}

.contact-card__header {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(124, 93, 255, 0.15);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: #a6b3ff;
}

.card__icon svg {
  width: 32px;
  height: 32px;
}

.case {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.case ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.case__cta-wrapper {
  margin-top: 1.5rem;
}

.case__cta {
  min-width: 0;
}

.case__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 320px;
  padding: 1rem 2rem;
}

.case-screen {
  border-radius: 32px;
  padding: 1.6rem;
  background: rgba(7, 10, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: clamp(240px, 28vw, 360px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: float 7s ease-in-out infinite;
}

.case-screen--main {
  color: #fff;
  position: relative;
  z-index: 1;
}

.case-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(5, 7, 13, 0.5);
  display: inline-block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.avatar--pink {
  background: linear-gradient(135deg, #ff8fd7, #ff5da2);
}

.avatar--violet {
  background: linear-gradient(135deg, #7c5dff, #5d7bff);
}

.avatar--cyan {
  background: linear-gradient(135deg, #5ddcff, #5d8dff);
}

.case-bars {
  display: flex;
  gap: 0.35rem;
  margin-top: 1rem;
}

.case-bars span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8fd7, #7c5dff);
  opacity: 0.7;
}

.case-screen--mini {
  align-self: flex-end;
  background: none;
  border: none;
  box-shadow: none;
  width: clamp(180px, 20vw, 240px);
  animation-delay: 0.5s;
  padding: 0;
  margin-top: -6.5rem;
  position: relative;
  z-index: 0;
}

.case-screen__preview {
  width: 100%;
  padding: 2px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ff8fd7, #5ddcff);
}

.case-screen__preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  background: #020713;
}

.timeline {
  border-left: 1px solid var(--border);
  margin-left: 1rem;
}

.timeline__item {
  position: relative;
  padding: 1.5rem 0 1.5rem 2rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #05070d;
  left: -6px;
  top: 1.8rem;
}

.timeline__index {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

input,
textarea {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 1rem;
  color: #fff;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(124, 93, 255, 0.4);
}

.form__full {
  grid-column: span 2;
}

.form__note {
  color: var(--muted);
}

.form__cta {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form__cta .primary-btn {
  flex-shrink: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1.5rem;
  }

  .hero__content {
    margin-top: 3rem;
    padding: 1.5rem;
  }

  .form__full,
  .form__note {
    grid-column: span 1;
  }

  .timeline {
    margin-left: 0;
    border-left: none;
  }

  .timeline__item::before {
    display: none;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .form__cta {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
}

.tech-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 40px;
}

.tech-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.tech-card h3 {
  margin-bottom: 16px;
}

.tech-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-card li {
  opacity: 0.9;
  margin-bottom: 6px;
}

.projects-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.project-card {
  flex: 1 1 220px;
  max-width: 280px;
  background: transparent;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  justify-content: center;
  text-align: center;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-logo {
  width: clamp(140px, 18vw, 160px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .projects-row {
    flex-direction: column;
  }
}
