/* Page Craft — Dark theme only (logo gradient) */

:root {
  --gradient-dark: #312e81;
  --gradient-mid: #4c1d95;
  --gradient-light: #6366f1;
  --gradient-pale: #818cf8;
  --gradient-soft: #3730a3;
  --gradient-bg: #1e1b4b;
  --bg: #0f0e1a;
  --surface: linear-gradient(165deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
  --surface-solid: #1e1b4b;
  --border: rgba(129, 140, 248, 0.25);
  --text: #e9d5ff;
  --text-muted: #c4b5fd;
  --accent: #a5b4fc;
  --accent-light: #c7d2fe;
  --accent-deep: #818cf8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --container: 960px;
  --header-bg: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
  --body-bg: linear-gradient(180deg, #0f0e1a 0%, #1e1b4b 30%, #312e81 70%, #3730a3 100%);
  --hero-bg: radial-gradient(ellipse 80% 60% at 20% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(129, 140, 248, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(49, 46, 129, 0.4) 0%, transparent 40%);
  --section-bg: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
  --card-bg: linear-gradient(165deg, #252267 0%, #312e81 100%);
  --card-border: linear-gradient(135deg, rgba(129, 140, 248, 0.4), rgba(165, 180, 252, 0.2));
  --footer-bg: linear-gradient(180deg, #312e81 0%, #4338ca 50%, #4c1d95 100%);
  --footer-text: #e9d5ff;
  --footer-muted: #c4b5fd;
  --btn-primary-bg: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  --btn-primary-hover: linear-gradient(135deg, #818cf8 0%, #a5b4fc 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  /* Base matches logo; subtle gradient echoes logo’s blue so background is indistinguishable */
  background: var(--body-bg);
  transition: background 0.35s ease, color 0.2s ease;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header — logo gradient strip */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
}

.logo-link {
  display: block;
  width: 140px;
  height: 34px;
  overflow: hidden;
  text-decoration: none;
  padding: 0;
  border: none;
  outline: none;
  border-radius: 6px;
  background: transparent;
  box-sizing: border-box;
}

.logo-link:focus {
  outline: none;
}

.logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: #fff;
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-bg);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  max-width: 20ch;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--accent);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.hero-audience {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.hero-value {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  max-width: 420px;
  margin: 0 0 2rem;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.65rem, 2.8vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.text-center .section-title,
.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Services */
.services {
  background: var(--section-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

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

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.2);
}

.service-icon {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Team */
.team {
  background: var(--section-bg);
  border-top: 1px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08);
}

.team-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.team-role {
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.team-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.team-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.team-link:hover {
  text-decoration: underline;
}

/* Templates */
.templates {
  background: var(--section-bg);
  border-top: 1px solid var(--border);
}

.sample-windows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

@media (min-width: 1100px) {
  .phone-mockup__bezel {
    width: 380px;
  }
}

@media (max-width: 900px) {
  .sample-windows {
    grid-template-columns: 1fr;
  }
}

.sample-window {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 420px;
}

.sample-window__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.sample-window__open {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.sample-window__open:hover {
  text-decoration: underline;
}

/* Mobile mockup: 9:19.5 aspect (phone portrait), large enough to read */
.phone-mockup {
  padding: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.phone-mockup__bezel {
  width: 320px;
  min-width: 280px;
  max-width: 100%;
  padding: 14px;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 0 2px rgba(255,255,255,0.06);
}

.phone-mockup__screen.sample-window__frame-wrap {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  min-height: 480px;
  border-radius: 28px;
  overflow: auto;
  background: #fff;
  scroll-behavior: auto;
}

.sample-window__frame-inner {
  width: 100%;
  height: 4000px;
}

.sample-window__frame {
  display: block;
  width: 100%;
  height: 4000px;
  border: none;
}

/* Contact */
.contact {
  background: var(--section-bg);
  border-top: 1px solid var(--border);
}

.contact-box {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.15);
}

.contact-email {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-place {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  color: #fff;
}

/* Footer — same as logo background so logo is indistinguishable */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-logo-img {
  max-width: 360px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
  transform: translateX(-15px);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--footer-muted);
  margin: 0 0 0.5rem;
}

.footer-links {
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-sep {
  color: var(--footer-muted);
  margin: 0 0.5rem;
}

.footer-copy {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--footer-muted);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav,
  .header .btn-primary {
    display: none;
  }

  .header.nav-open .nav,
  .header.nav-open .btn-primary {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .header.nav-open .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--footer-muted);
  margin: 0 0 0.5rem;
}
