/* XYNTALIX PRIVATE LIMITED — Utility Bill + DMT */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #0f1f1a;
  --ink-soft: #3d5249;
  --muted: #6b7f75;
  --paper: #f6f8f5;
  --surface: #ffffff;
  --line: #d5e0da;
  --teal: #0d5c4d;
  --teal-deep: #084038;
  --teal-mid: #147a66;
  --mint: #c8e6dc;
  --sand: #e8efe9;
  --amber: #c47a1a;
  --amber-soft: #f3e2c4;
  --danger: #b42318;
  --success: #0f7a4f;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(15, 31, 26, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Header / Nav —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.site-header.is-solid {
  position: sticky;
  top: 0;
  background: rgba(246, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  z-index: 2;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--teal-mid), var(--teal-deep));
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  border-right-color: transparent;
  transform: rotate(45deg);
}

.logo-text {
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(246, 248, 245, 0.88);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.site-header.is-solid .nav-links a {
  color: var(--ink-soft);
}

.site-header.is-solid .nav-links a:hover,
.site-header.is-solid .nav-links a.active {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 2;
}

.site-header.is-solid .nav-toggle {
  border-color: var(--line);
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  background: #fff;
  margin: 0.28rem auto;
  transition: transform 0.2s var(--ease);
}

.site-header.is-solid .nav-toggle span {
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--amber);
  color: #fff;
}

.btn-primary:hover {
  background: #a86612;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-solid {
  background: var(--teal);
  color: #fff;
}

.btn-solid:hover {
  background: var(--teal-deep);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--teal);
  background: var(--sand);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.site-header.is-solid .btn-ghost {
  color: var(--teal);
  border-color: var(--line);
}

.site-header.is-solid .btn-ghost:hover {
  background: var(--sand);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(8, 64, 56, 0.92) 0%, rgba(13, 92, 77, 0.78) 42%, rgba(15, 31, 26, 0.55) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196, 122, 26, 0.25), transparent 55%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #084038, #0d5c4d 45%, #1a3a32);
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 380px;
  height: 380px;
  background: #147a66;
  top: -80px;
  right: 8%;
}

.hero-orb-2 {
  width: 260px;
  height: 260px;
  background: #c47a1a;
  bottom: 12%;
  right: 28%;
  animation-delay: -4s;
  opacity: 0.28;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 5rem;
  max-width: 640px;
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(246, 248, 245, 0.88);
  max-width: 28ch;
  margin: 0 0 2rem;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.hero-aside {
  position: absolute;
  right: max(1.25rem, calc((100% - 1120px) / 2));
  bottom: 4.5rem;
  width: min(320px, 38vw);
  z-index: 2;
  animation: rise 1s var(--ease) 0.3s both;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1.25rem;
}

.hero-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.flow-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.flow-label {
  color: rgba(255, 255, 255, 0.75);
}

.flow-value {
  font-weight: 650;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-24px, 18px) scale(1.06);
  }
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.services {
  background: var(--surface);
}

.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.service-block {
  padding: 2.25rem;
  background: var(--surface);
}

.service-block + .service-block {
  border-left: 1px solid var(--line);
  background: linear-gradient(165deg, #f3f8f5, #fff 55%);
}

.service-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 0.75rem;
}

.service-block h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.service-block p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.service-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
  border-radius: 1px;
  background: var(--amber);
}

.how {
  background: linear-gradient(180deg, var(--sand), var(--paper));
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.35rem 0;
  border-top: 2px solid var(--teal);
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal) 55%, #1a6b58);
  color: #fff;
  padding: 4rem 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
}

/* —— Inner pages —— */
.page-hero {
  padding: 4.5rem 0 3rem;
  background:
    linear-gradient(160deg, var(--sand), var(--paper) 70%),
    radial-gradient(ellipse at 90% 0%, rgba(20, 122, 102, 0.12), transparent 50%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.page-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 0.75rem;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.about-aside {
  background: linear-gradient(165deg, #f3f8f5, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}

.about-aside h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.about-stat {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.about-stat:first-of-type {
  border-top: none;
  padding-top: 0;
}

.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.about-stat span {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-item h3 {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item p {
  margin: 0;
  font-size: 1.05rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcfb;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(20, 122, 102, 0.15);
  background: #fff;
}

.form-actions {
  margin-top: 1.25rem;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-note.success {
  color: var(--success);
}

.service-detail-grid {
  display: grid;
  gap: 1.5rem;
}

.service-detail {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.service-detail:nth-child(even) {
  background: linear-gradient(165deg, #f3f8f5, #fff 60%);
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* —— Login —— */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 3rem 0 4rem;
  background:
    linear-gradient(160deg, var(--sand), var(--paper) 55%),
    radial-gradient(ellipse at 10% 20%, rgba(20, 122, 102, 0.12), transparent 45%);
}

.login-shell {
  width: min(920px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.login-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.85rem;
}

.login-intro p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36ch;
  font-size: 1.05rem;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
  display: grid;
  gap: 0.85rem;
  box-shadow: var(--shadow);
  animation: rise 0.55s var(--ease);
}

.login-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.login-sub {
  margin: -0.35rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.login-row a {
  color: var(--teal);
  font-weight: 600;
}

.login-row a:hover {
  text-decoration: underline;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.login-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.site-footer {
  background: var(--ink);
  color: rgba(246, 248, 245, 0.75);
  padding: 2.75rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  max-width: 28ch;
  color: rgba(246, 248, 245, 0.6);
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-bottom .logo-text {
  color: #fff;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--teal-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header.is-solid .nav-links {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header.is-solid .nav-links li {
    border-top-color: var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    color: rgba(255, 255, 255, 0.9);
  }

  .site-header.is-solid .nav-links a {
    color: var(--ink);
  }

  .hero-aside {
    display: none;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .service-split,
  .about-grid,
  .contact-layout,
  .footer-grid,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .service-block + .service-block {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .steps,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
