:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --panel: #ffffff;
  --panel-border: #e2e8f0;
  --text: #0f172a;
  --text-heading: #020617;
  --muted: #475569;
  --accent: #f97316; /* Vibrant Orange */
  --accent-hover: #ea580c;
  --accent-2: #0f766e; /* Deep Teal */
  --accent-2-hover: #0d9488;
  --accent-2-light: #ccfbf1;
  --accent-light: #ffedd5;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.025);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 10px 25px -5px rgba(249, 115, 22, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  /* Very subtle gradient background for depth */
  background-image: 
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.03), transparent 40%),
    radial-gradient(circle at top left, rgba(13, 148, 136, 0.03), transparent 40%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #ff983f);
  box-shadow: var(--shadow-glow);
  font-size: 1.2rem;
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-heading);
  font-size: 1.1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  padding: 8px 16px;
  color: var(--muted);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--text-heading);
  background: var(--bg-alt);
}

.nav-cta {
  color: #ffffff !important;
  background: var(--accent-2);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.nav-cta:hover {
  background: var(--accent-2-hover);
  transform: translateY(-1px);
}

/* Typography Shared */
.hero h1,
.section h2,
.app-card h3,
.service-list h3,
.contact-panel h2 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-heading);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 48px;
  padding: 64px 0 48px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead,
.section-heading p,
.service-list p,
.app-card p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.lead {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: var(--shadow-glow);
}
.button-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 28px -6px rgba(249, 115, 22, 0.35);
}

.button-secondary {
  border: 2px solid var(--panel-border);
  color: var(--text-heading);
  background: #ffffff;
}
.button-secondary:hover {
  border-color: var(--muted);
  background: var(--bg-alt);
}

/* Hero Graphic / Mock Window */
.hero-card {
  position: relative;
  perspective: 1000px;
}

.mock-window {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  transform: rotateY(-2deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.mock-window:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.window-top {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--panel-border);
}

.window-top span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}
.window-top span:nth-child(1) { background: #ef4444; }
.window-top span:nth-child(2) { background: #f59e0b; }
.window-top span:nth-child(3) { background: #10b981; }

.window-content {
  padding: 24px;
  display: grid;
  gap: 16px;
  background: var(--bg);
}

.signal-card {
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow);
}

.signal-primary {
  background: linear-gradient(135deg, var(--bg), var(--accent-light));
  border-color: rgba(249, 115, 22, 0.2);
}

.signal-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-2-light);
  color: var(--accent-2);
}

.signal-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.signal-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-heading {
  max-width: 60ch;
  margin-bottom: 40px;
}
.section-heading.center {
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 16px 0 0;
  font-size: 1.1rem;
}

/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.app-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(249, 115, 22, 0.3);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.app-card:hover::before {
  opacity: 1;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.app-card p {
  margin: 0 0 24px;
  flex-grow: 1;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.app-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--muted);
  border: 1px solid var(--panel-border);
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
}
.app-link:hover {
  color: var(--accent-2-hover);
}
.app-link::after {
  content: '→';
  transition: transform 0.2s;
}
.app-link:hover::after {
  transform: translateX(4px);
}

/* Services Split */
.split {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 48px;
}
@media (min-width: 961px) {
  .split { display: grid; }
}

.service-list {
  display: grid;
  gap: 20px;
}

.service-list article {
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.service-list h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

/* Contact Panel */
.contact-panel {
  border-radius: 24px;
  padding: 48px;
  background: linear-gradient(135deg, var(--bg-alt), #f1f5f9);
  border: 1px solid var(--panel-border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
}

@media (max-width: 960px) {
  .hero,
  .contact-panel {
    grid-template-columns: 1fr;
  }
  
  .hero {
    gap: 40px;
    padding-top: 32px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 32px, 1180px);
    padding-top: 16px;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .contact-panel {
    padding: 32px 24px;
    text-align: center;
    justify-items: center;
  }
}

/* Feature Rows (screenshot + copy) */
.feature-row {
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-row img {
  width: 200px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.feature-row p {
  margin: 0;
}

@media (max-width: 640px) {
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
  }
  .feature-row img {
    width: 160px;
  }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-heading);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '+';
  display: inline-block;
  width: 20px;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: '−';
}

.faq-item p {
  margin: 12px 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

/* Policy / Legal Prose */
.policy {
  max-width: 75ch;
  padding: 8px 0 32px;
  color: var(--muted);
  line-height: 1.7;
}

.policy h2 {
  margin: 40px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--text-heading);
}

.policy p,
.policy ul {
  margin: 0 0 16px;
}

.policy ul {
  padding-left: 22px;
}

.policy li {
  margin-bottom: 8px;
}

.policy strong {
  color: var(--text);
}

.policy a,
.faq-item a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy a:hover,
.faq-item a:hover {
  color: var(--accent-2-hover);
}

/* Animations */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
