/* Tricitivigyapan — premium minimal agency UI */

:root {
  --bg: #0b1120;
  --bg-elevated: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --accent-glow: rgba(249, 115, 22, 0.35);
  --purple: #a855f7;
  --blue: #2563eb;
  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #a855f7 50%, #f97316 100%);
  --gradient-warm: linear-gradient(135deg, #7c3aed 0%, #f97316 100%);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --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);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 3rem;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 9, 15, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-link img,
.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-logo-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 0.25rem 0.5rem;
  line-height: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a:not(.btn) {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-warm);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-text:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(168, 85, 247, 0.1), transparent),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(249, 115, 22, 0.08), transparent),
    linear-gradient(180deg, #050a14 0%, var(--bg) 100%);
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb--1 {
  width: 320px;
  height: 320px;
  background: rgba(37, 99, 235, 0.18);
  top: 10%;
  right: 15%;
  animation-delay: 0s;
}

.hero-orb--2 {
  width: 240px;
  height: 240px;
  background: rgba(168, 85, 247, 0.14);
  bottom: 20%;
  left: 5%;
  animation-delay: -4s;
}

.hero-orb--3 {
  width: 160px;
  height: 160px;
  background: rgba(249, 115, 22, 0.12);
  top: 50%;
  left: 40%;
  animation-delay: -8s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -18px) scale(1.05);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero-content {
  max-width: 36rem;
}

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 2rem;
  max-width: 42ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
}

.hero-stat span {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.hero-visual img,
.hero-banner-img {
  width: 100%;
  max-width: 640px;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: heroPulse 8s ease-in-out infinite;
  image-rendering: -webkit-optimize-contrast;
}

@keyframes heroPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.service-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.service-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.service-benefits li {
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.service-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Paid ads highlight */
.paid-ads {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.paid-ads::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(168, 85, 247, 0.06) 50%, rgba(249, 115, 22, 0.06) 100%);
  border-block: 1px solid var(--border);
  z-index: 0;
}

.paid-ads .container {
  position: relative;
  z-index: 1;
}

.paid-ads-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.paid-ads-header .section-lead {
  margin-inline: auto;
}

.paid-ads-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 500;
  color: var(--text);
  margin: 2rem 0 0;
  font-style: italic;
}

.paid-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.paid-item {
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.paid-item:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.06);
}

.paid-item svg {
  margin: 0 auto 0.75rem;
  color: var(--accent);
}

.paid-item h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Features grid (reserved) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feature-item h4 svg {
  flex-shrink: 0;
  color: var(--accent);
}

.feature-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.about-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.about-list li {
  font-size: 0.85rem;
  color: var(--text-subtle);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.about-visual img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.brand-strip {
  padding: 3rem 0;
  background: #f8fafc;
}

.brand-strip img {
  width: min(100%, 640px);
  margin-inline: auto;
}

.brand-strip .container {
  display: flex;
  justify-content: center;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-detail a:hover {
  color: var(--accent);
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.contact-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(7, 9, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.5);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  color: #86efac;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand img {
  height: 44px;
  width: auto;
}

.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0.5rem 0 0;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img,
  .hero-banner-img {
    max-width: 100%;
    margin-inline: auto;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.25rem;
    background: rgba(7, 9, 15, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a:not(.btn) {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav .btn {
    margin-top: 0.5rem;
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .brand-strip {
    padding: 2rem 0;
  }

  .brand-strip img {
    width: 100%;
  }
}
