/* ============================================================
   AppsUtil — Global Styles
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0b0b14;
  --bg2:         #13131f;
  --bg3:         #1a1a2e;
  --card:        #16162a;
  --border:      rgba(255,255,255,0.07);
  --accent:      #5b8dee;
  --accent2:     #9b59b6;
  --accent-glow: rgba(91,141,238,0.25);
  --text:        #f0f0f8;
  --muted:       #8888a8;
  --white:       #ffffff;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 8px 32px rgba(0,0,0,0.45);
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--muted); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 56px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91,141,238,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  color: var(--white);
  border-color: var(--accent);
  background: rgba(91,141,238,0.08);
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 16px 0;
  background: rgba(11,11,20,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.nav-logo span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-cta { margin-left: 8px; padding: 10px 22px; font-size: 0.88rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(91,141,238,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(155,89,182,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91,141,238,0.12);
  border: 1px solid rgba(91,141,238,0.3);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero h1 { margin-bottom: 20px; }

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.hero-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-mockup {
  position: relative;
  width: 240px;
}

.hero-phone-mockup img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}

.hero-glow {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,141,238,0.25), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: rgba(91,141,238,0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(91,141,238,0.2), rgba(155,89,182,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; }

/* ============================================================
   Products
   ============================================================ */
.products { background: var(--bg2); }

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.product-card:hover {
  border-color: rgba(91,141,238,0.4);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  transform: translateY(-4px);
  color: inherit;
}

.product-info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-tag {
  display: inline-block;
  background: rgba(91,141,238,0.15);
  color: var(--accent);
  border: 1px solid rgba(91,141,238,0.3);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  width: fit-content;
}

.product-info h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--white), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-info p { margin-bottom: 28px; font-size: 0.95rem; }

.product-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.p-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}
.p-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}
.p-stat span { font-size: 0.74rem; color: var(--muted); }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  transition: gap var(--transition);
}
.product-card:hover .product-link { gap: 10px; }

.product-screenshots {
  background: linear-gradient(135deg, #0f0f22, #1a1030);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  gap: 16px;
  overflow: hidden;
}

.product-screenshots img {
  height: 220px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  transition: transform var(--transition);
  object-fit: cover;
}
.product-card:hover .product-screenshots img { transform: translateY(-6px) scale(1.02); }
.product-screenshots img:nth-child(2) {
  transform: translateY(20px);
  z-index: 1;
}
.product-card:hover .product-screenshots img:nth-child(2) {
  transform: translateY(14px) scale(1.02);
}

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, rgba(91,141,238,0.15), rgba(155,89,182,0.15));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner h2 { margin-bottom: 14px; }
.cta-inner p { font-size: 1.05rem; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 280px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo img { height: 36px; }
.footer-logo span { font-size: 1.1rem; font-weight: 700; color: var(--white); }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================================================
   Page Header (inner pages)
   ============================================================ */
.page-header {
  padding: 140px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(91,141,238,0.1) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}
.page-header p { margin: 12px auto 0; max-width: 540px; font-size: 1.05rem; }

/* ============================================================
   Contact Page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.contact-info-card h3 { margin-bottom: 8px; }
.contact-info-card > p { font-size: 0.92rem; margin-bottom: 28px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; }

.contact-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  background: rgba(91,141,238,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-item-text strong {
  display: block;
  color: var(--white);
  font-size: 0.88rem;
  margin-bottom: 3px;
}
.contact-item-text span, .contact-item-text a {
  font-size: 0.92rem;
  color: var(--muted);
}
.contact-item-text a:hover { color: var(--accent); }

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.contact-form-card h3 { margin-bottom: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: rgba(91,141,238,0.04);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg3); }

.form-submit { width: 100%; justify-content: center; margin-top: 8px; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.3s ease both; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .product-screenshots { padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
    z-index: 998;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .product-stats { grid-template-columns: 1fr 1fr; }
}
