:root {
  --bg-dark: #ffffff;
  --bg-light: #f8f9fa;
  --accent: #ff4b5c;
  --accent-soft: rgba(255, 75, 92, 0.14);
  --text-main: #1a1a1a;
  --text-muted: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --max-width: 1120px;
}

/* Global */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
}

section {
  padding: 80px 24px;
}

h1,
h2 {
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

/* Layout helpers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

nav li {
  position: relative;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

nav li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c1c3, #ff4b5c);
  transition: width 0.2s ease;
}

nav li:hover {
  color: var(--text-main);
}

nav li:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  padding: 120px 24px 96px;
  background: #ffffff;
}

.hero .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.hero p {
  margin: 16px 0 28px;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero button {
  margin-top: 4px;
}

/* Buttons */
button {
  padding: 11px 22px;
  margin-right: 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

button:first-of-type {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 18px 45px rgba(248, 113, 113, 0.4);
}

button:first-of-type:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(248, 113, 113, 0.55);
}

button:last-of-type {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.2);
}

button:last-of-type:hover {
  background: var(--accent-soft);
  border-color: rgba(248, 113, 113, 0.85);
}

/* Services */
.services {
  background: #ffffff;
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.services .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.services h2 {
  font-size: 1.7rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.service {
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.service::after {
  content: "↗";
  font-size: 0.9rem;
  opacity: 0.6;
}

.service:hover {
  transform: translateY(-3px);
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.08);
}

/* Work */
.work {
  background: #ffffff;
}

.work .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.work h2 {
  font-size: 1.7rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.project {
  padding: 22px 20px 24px;
  border-radius: 22px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  background: #ffffff;
  color: var(--text-main);
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 140px;
}

/* CTA */
.cta {
  text-align: center;
  background: #ffffff;
  border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* Footer */
footer {
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.82rem;
}

footer p {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 26px;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 640px) {
  header nav {
    padding-inline: 16px;
  }

  nav ul {
    gap: 16px;
    font-size: 0.8rem;
  }

  section {
    padding-inline: 16px;
  }

  button {
    width: 100%;
    margin: 0 0 10px;
  }
}
