:root {
  --bg: #f6f6f0;
  --bg-soft: #eef3fa;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-deep: #081223;
  --surface-deep-soft: #10213b;
  --line: rgba(8, 18, 35, 0.1);
  --line-strong: rgba(216, 179, 106, 0.28);
  --text: #112039;
  --text-muted: #586274;
  --text-inverse: #f7f7f2;
  --accent: #d8b36a;
  --accent-soft: #f1cf8d;
  --accent-ink: #1d2834;
  --shadow: 0 24px 70px rgba(6, 15, 30, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1160px, calc(100vw - 40px));
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-display: "Cormorant Garamond", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 179, 106, 0.1), transparent 25%),
    linear-gradient(180deg, #f4f6fb 0%, #f8f7f2 42%, #ffffff 100%);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-one {
  top: 5rem;
  left: -6rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(216, 179, 106, 0.28), transparent 70%);
}

.ambient-two {
  top: 22rem;
  right: -8rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(99, 151, 226, 0.18), transparent 72%);
}

.ambient-three {
  bottom: 8rem;
  left: 16%;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(216, 179, 106, 0.12), transparent 72%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0;
  transition: background-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 18, 35, 0.78);
  box-shadow: 0 10px 36px rgba(4, 10, 20, 0.25);
  backdrop-filter: blur(16px);
}

.navbar,
.section > *,
.footer-grid,
.footer-contact-row,
.footer-meta {
  width: var(--container);
  margin: 0 auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
}

.site-header .navbar.glass {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
  color: var(--text-inverse);
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 700;
}

.brand-copy small {
  color: rgba(247, 247, 242, 0.72);
}

.site-header .navbar.glass .brand-copy {
  color: var(--text);
}

.site-header .navbar.glass .brand-copy small {
  color: var(--text-muted);
}

.glass {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--text-inverse);
  transition: transform 180ms ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(247, 247, 242, 0.86);
}

.site-header .navbar.glass .nav-links,
.site-header .navbar.glass .dropdown-trigger {
  color: var(--text);
}

.nav-links a,
.dropdown-trigger {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-links a::after,
.dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.dropdown-trigger:hover::after,
.dropdown-trigger:focus-visible::after {
  transform: scaleX(1);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  min-width: 240px;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 15;
}

.has-dropdown.is-open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.contact-item:hover,
.contact-item:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-secondary,
.button-ghost,
.nav-cta {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-inverse);
}

.site-header .navbar.glass .nav-cta {
  background: rgba(8, 18, 35, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.services-grid .button-ghost,
.reason-section .button-ghost,
.about-grid .button-ghost {
  background: rgba(8, 18, 35, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.section {
  position: relative;
  z-index: 1;
  padding: 5.4rem 0;
}

.hero.section {
  margin-top: -88px;
  padding-top: 9.5rem;
  padding-bottom: 5.4rem;
  background:
    linear-gradient(135deg, rgba(8, 18, 35, 0.98) 0%, rgba(14, 27, 49, 0.96) 52%, rgba(15, 37, 64, 0.98) 100%);
  color: var(--text-inverse);
  overflow: clip;
}

.hero-grid,
.about-grid,
.footer-grid {
  display: grid;
  gap: 1.8rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
}

.about-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.94fr);
  align-items: start;
}

.hero-copy,
.about-column,
.founder-card,
.service-card,
.cta-copy,
.about-card {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.05;
}

p {
  margin: 0;
  line-height: 1.72;
}

.eyebrow,
.glass-pill,
.stack-kicker,
.case-hub-kicker,
.proof-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.glass-pill::before,
.stack-kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: rgba(241, 207, 141, 0.8);
}

.breadcrumb-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  color: rgba(247, 247, 242, 0.72);
}

.breadcrumb-trail a {
  color: rgba(255, 255, 255, 0.92);
}

.hero-copy > .eyebrow,
.hero-copy > .glass-pill {
  margin-bottom: 1rem;
}

.hero-text,
.hero-subtext {
  max-width: 62ch;
  color: rgba(247, 247, 242, 0.8);
}

.hero-text {
  margin-top: 1.25rem;
  font-size: 1.06rem;
}

.hero-subtext {
  margin-top: 1rem;
}

.hero-actions,
.case-hub-links,
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.hero-visual {
  min-height: 100%;
}

.visual-panel,
.about-card,
.founder-card,
.cta-copy,
.service-card,
.case-hub-card,
.case-metric,
.contact-item,
.portfolio-login-preview,
.mini-card,
.brand-badge,
.service-bullets li,
.case-list li {
  border-radius: var(--radius-lg);
}

.visual-panel,
.cta-copy {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.visual-topline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: rgba(247, 247, 242, 0.78);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), #fff0ca);
  box-shadow: 0 0 0 6px rgba(216, 179, 106, 0.12);
}

.service-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  margin-bottom: 1rem;
  padding: 12px;
  border-radius: 24px;
  object-fit: contain;
  object-position: center;
  background:
    linear-gradient(180deg, rgba(248, 249, 245, 0.98), rgba(238, 243, 250, 0.96));
  box-shadow: 0 20px 50px rgba(6, 15, 30, 0.18);
}

.brand-badge,
.mini-card,
.service-bullets li,
.case-list li,
.case-hub-card,
.case-metric,
.portfolio-login-preview {
  padding: 1rem 1.05rem;
  background: rgba(5, 11, 22, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
}

.brand-badge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
}

.mini-list,
.service-bullets,
.case-list,
.case-hub-grid {
  display: grid;
  gap: 0.9rem;
}

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

.mini-card strong,
.service-bullets strong,
.case-list strong,
.case-metric strong {
  display: block;
}

.mini-card span,
.service-bullets span,
.case-list span,
.case-hub-proof,
.case-metric span,
.brand-badge span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(247, 247, 242, 0.76);
}

.about-section,
.services-section {
  background: transparent;
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.section-heading p,
.about-card p,
.service-card p,
.footer-grid p,
.footer-meta p,
.contact-item span:last-child {
  color: var(--text-muted);
}

.about-card,
.founder-card,
.service-card {
  padding: 1.45rem;
}

.about-card,
.founder-card,
.service-card {
  background: rgba(255, 255, 255, 0.92);
}

.founder-card,
.service-card,
.about-card {
  border: 1px solid var(--line);
}

.stack-kicker,
.case-hub-kicker {
  color: #9d7a36;
}

.stack-kicker {
  margin-bottom: 0.9rem;
}

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

.service-card a {
  margin-top: 0.4rem;
}

.reason-section .section-heading {
  margin-bottom: 0;
}

.cta-section {
  padding-top: 4rem;
}

.cta-grid {
  width: var(--container);
  margin: 0 auto;
}

.cta-copy {
  background:
    linear-gradient(135deg, rgba(8, 18, 35, 0.98), rgba(18, 38, 64, 0.98)),
    radial-gradient(circle at top right, rgba(216, 179, 106, 0.18), transparent 24%);
  color: var(--text-inverse);
}

.cta-copy p {
  color: rgba(247, 247, 242, 0.8);
}

.site-footer {
  padding: 3rem 0 2.5rem;
  background: #081223;
  color: var(--text-inverse);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.8fr));
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-grid.glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h3 {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin-bottom: 0.55rem;
  color: rgba(247, 247, 242, 0.76);
}

.footer-brand {
  margin-bottom: 0.9rem;
}

.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
}

.site-footer .contact-item span:last-child {
  color: rgba(247, 247, 242, 0.76);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon-facebook svg,
.contact-icon-whatsapp svg {
  fill: none;
}

.footer-meta {
  margin-top: 1rem;
  color: rgba(247, 247, 242, 0.65);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 160ms ease;
}

.portfolio-login-top,
.portfolio-login-links,
.portfolio-login-form,
.portfolio-login-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.portfolio-login-top,
.portfolio-login-links {
  justify-content: space-between;
  flex-wrap: wrap;
}

.portfolio-login-links {
  margin: 1rem 0;
}

.portfolio-login-form {
  display: grid;
  gap: 0.75rem;
}

.portfolio-login-field,
.portfolio-login-action {
  display: inline-flex;
  min-height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-login-field {
  flex: 1;
}

.portfolio-login-action {
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  color: var(--accent-soft);
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.visual-panel .button {
  width: fit-content;
}

body.is-nav-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 0.85rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-header .navbar.glass .nav-toggle {
    background: rgba(8, 18, 35, 0.08);
  }

  .site-header .navbar.glass .nav-toggle span {
    background: var(--text);
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 24px;
    background: rgba(8, 18, 35, 0.98);
    box-shadow: 0 22px 45px rgba(4, 10, 20, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header .navbar.glass .nav-links,
  .site-header .navbar.glass .dropdown-trigger,
  .site-header .navbar.glass .nav-cta {
    color: var(--text-inverse);
  }

  .site-header .navbar.glass .nav-cta {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .nav-links {
    display: grid;
    gap: 1rem;
  }

  .dropdown {
    position: static;
    min-width: 0;
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .has-dropdown.is-open .dropdown {
    display: grid;
  }

  .hero.section {
    margin-top: -76px;
    padding-top: 8rem;
  }

  .service-hero-image {
    max-height: 320px;
  }

  .services-grid,
  .case-hub-grid,
  .case-metrics {
    grid-template-columns: 1fr;
  }

  .footer-contact-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 28px, 1160px);
  }

  .button,
  .contact-item {
    width: 100%;
  }

  .hero-actions,
  .case-hub-links,
  .related-links {
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}
