/* Medsathi – single page site (light theme) */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #16a34a;
  --green-light: #22c55e;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --surface: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Dev environment banner (shown only on dev domain / localhost) */
.dev-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #008080;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  padding: 0.35rem 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.has-dev-banner .header {
  top: 2rem;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--green-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--blue-dark);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"]::before,
.nav-toggle[aria-expanded="true"]::after {
  background: var(--text);
}
.nav-toggle::before { top: 0.65rem; }
.nav-toggle::after { bottom: 0.65rem; }
.nav-toggle[aria-expanded="true"]::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"]::after {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--surface);
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-card) 50%, var(--bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 28ch;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-app-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.12));
}
.hero-gif {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-secondary:hover {
  background: rgba(34, 197, 94, 0.08);
}

/* Section common */
.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
}
.section-lead {
  margin: 0 0 2.5rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 50ch;
}

/* Features */
.features {
  padding: 4rem 0;
}
.features .section-lead {
  margin-bottom: 2.5rem;
}
.features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: var(--shadow);
}
.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}
.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About */
.about {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--surface);
  border-bottom: 1px solid var(--surface);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.about-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 52ch;
}
.about-content p:last-child {
  margin-bottom: 0;
}
.about-logo {
  max-width: 160px;
  height: auto;
  opacity: 0.9;
}
@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-content p { margin-left: auto; margin-right: auto; }
}

/* Screenshots */
.screenshots {
  padding: 4rem 0;
}
.screenshots-wrap {
  background: var(--bg-card);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.screenshot-slots {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.screenshot-slot {
  width: 180px;
  height: 320px;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  overflow: hidden;
  position: relative;
}
.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.screenshot-slot .slot-label {
  display: none;
  padding: 0.5rem;
}
.screenshot-slot .slot-label.show {
  display: block;
  position: absolute;
}
.screenshots-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.screenshots-hint code {
  background: var(--surface);
  padding: 0.2em 0.5em;
  border-radius: 6px;
  font-size: 0.8em;
}

/* Legal (T&C, Privacy) – standalone pages (no navbar) */
.legal-page {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}
.legal-page .section-title {
  margin-bottom: 0.25rem;
}
.legal-updated {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.legal-content {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.legal-content h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}
.legal-content h3:first-child {
  margin-top: 0;
}
.legal-content p {
  margin: 0 0 0.75rem;
}
.legal-back {
  margin: 2.5rem 0 0;
}
.legal-back .btn {
  margin: 0;
}

/* Contact */
.contact {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--surface);
}
.contact-form {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}
.contact-note {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--surface);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-logo {
  height: 2rem;
  width: auto;
  opacity: 0.9;
}
.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-nav a:hover {
  color: var(--blue);
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .hero h1,
  .hero-lead,
  .hero-cta,
  .hero-app-logo {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
  }
  .hero h1 { animation-delay: 0.1s; }
  .hero-lead { animation-delay: 0.2s; }
  .hero-cta { animation-delay: 0.3s; }
  .hero-app-logo { animation-delay: 0.2s; }
  .feature-card:nth-child(1) { animation-delay: 0.1s; }
  .feature-card:nth-child(2) { animation-delay: 0.15s; }
  .feature-card:nth-child(3) { animation-delay: 0.2s; }
  .feature-card:nth-child(4) { animation-delay: 0.25s; }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
