:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --accent: #2563eb;
  --accent-soft: #e0edff;
  --accent-dark: #1d4ed8;
  --text: #0f172a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #dc2626;
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --max-width: 1080px;
  --transition-fast: 180ms ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  line-height: 1.65;
  font-size: 16.5px;
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout helpers */

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

.section {
  padding: 4rem 0;
}

.section+.section {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.section-header {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.section-description {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Header + hero */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 247, 251, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.45);
}

/* Site logo image inside the brand box — constrain size and preserve aspect */
.site-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Responsive logo tweaks: slightly smaller on tablet and mobile */
@media (max-width: 768px) {
  .site-logo {
    width: 36px;
    height: 36px;
  }

  /* keep the brand container proportional on narrower viewports */
  .brand-logo {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    width: 32px;
    height: 32px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-tagline {
  font-size: 0.84rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent-dark);
  border-color: rgba(37, 99, 235, 0.4);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #f9fafb;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
}

.nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #1f2933;
  margin: 4px 0;
}

/* Hero */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2.25rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.hero-kicker span {
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3.1vw, 2.6rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.8rem;
}

.hero-title span {
  color: var(--accent-dark);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
  max-width: 32rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-footnote {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-footnote strong {
  color: var(--accent-dark);
}

.hero-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.hero-summary {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.metric {
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: #f9fbff;
  border: 1px solid #e0ebff;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.metric-value {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.hero-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Cards */

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

.card-tag {
  font-size: 0.78rem;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.card-body {
  color: var(--muted);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.card-list li::before {
  content: "•";
  color: var(--accent-dark);
  margin-top: 0.05rem;
  font-size: 0.9rem;
}

.card-footer {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.price {
  font-weight: 600;
}

.price span {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.86rem;
}

.pill-soft {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #f3f4ff;
  color: var(--accent-dark);
  border: 1px solid #e0e7ff;
  font-size: 0.8rem;
}

/* Problems */

.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.problem-item {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.problem-icon {
  font-size: 1rem;
  margin-top: 0.1rem;
}

.problem-text span {
  display: block;
  font-weight: 500;
  margin-bottom: 0.05rem;
}

.problem-text small {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Examples */

.example-list {
  display: grid;
  gap: 1rem;
}

.example-item {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.94rem;
}

.example-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.example-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

/* On wider screens show two columns: main text + narrow founder card to the right */
@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr 360px;
    align-items: start;
    gap: 2rem;
  }

  .founder-card {
    margin: 0;
  }
}

/* top area pairing: section header and founder card */
.about-top {
  display: block;
}

@media (min-width: 880px) {
  .about-top {
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: center;
    gap: 2rem;
  }

  .founder-card {
    margin: 0;
  }
}

.founder-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.founder-photo {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border-radius: 50%;
  background: #e5edff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.founder-bio h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.founder-bio p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Services / Packages */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.chip {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  background: #f9fafb;
}

.card-highlight {
  border-color: #bfdbfe;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
}

/* Buttons */

.btn-primary {
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 20px 52px rgba(37, 99, 235, 0.6);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  padding: 0.78rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

/* Contact */

.contact-card {
  max-width: 640px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.field-group label {
  font-size: 0.86rem;
  color: var(--muted);
}

.field-group input,
.field-group textarea,
.admin-filter-select,
.admin-status-select {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  background: #f9fafb;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #9ca3af;
}

.field-group input:focus,
.field-group textarea:focus,
.admin-filter-select:focus,
.admin-status-select:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.field-group textarea {
  resize: vertical;
  min-height: 110px;
}

.field-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
}

.status-message {
  font-size: 0.85rem;
  min-height: 1.3em;
}

.status-success {
  color: #15803d;
}

.status-error {
  color: var(--danger);
}

.contact-footnote {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.contact-footnote a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Footer */

footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 1.3rem 0 1.6rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

/* Footer layout and social icons */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.footer-links {
  display: flex;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-link:hover {
  transform: translateY(-3px);
  background: #f3f6ff;
  color: var(--accent-dark);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
}

.admin-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.admin-card {
  margin-bottom: 1.5rem;
}

.admin-card-header {
  justify-content: space-between;
}

.admin-header-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-header-controls label {
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-table-wrapper {
  margin-top: 0.8rem;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 640px;
}

.admin-table th,
.admin-table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-weight: 600;
  background: #f3f4ff;
}

.admin-table tr:nth-child(even) td {
  background: #ffffff;
}

.admin-table tr:nth-child(odd) td {
  background: #f9fafb;
}

.admin-email-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.btn-xs {
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
}

.admin-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.admin-note code {
  font-size: 0.8rem;
  background: #f3f4ff;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

/* Responsive nav & layout */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }
}


@media (max-width: 605px) {
  .footer-links {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    padding: 0.9rem 1.5rem 1.2rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    transform-origin: top;
    transform: scaleY(0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease-out, transform 150ms ease-out;
  }

  .nav-links.show {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .section {
    padding: 3rem 0;
  }

  .field-inline {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero-title {
    font-size: 1.9rem;
  }
}

/* Card / item image placeholders */
.card-image {
  margin-bottom: 0.75rem;
}

.card-image-placeholder {
  width: 100%;
  border-radius: 12px;
  background: #e5edff;
  border: 1px dashed #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.founders-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .founders-wrap {
    flex-direction: column;
  }
}

@media (min-width: 960px) {
  .founders-wrap {
    flex-direction: column;
  }
}

.founder-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.founder-bio h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.founder-bio p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Ensure images in founder avatar are not squished */
Ensure images in founder avatar are not squished */

/* Avatar images: always a perfect circle, no squish */
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Founder image clickable — show larger modal */
.founder-photo img {
  cursor: pointer;
}

/* Image modal */
.image-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.image-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal .modal-content {
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal .modal-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.6);
  display: block;
  transform: scale(0.96);
  /* image animates only by scaling (no fade) */
  transition: transform 420ms cubic-bezier(.2, .9, .25, 1);
}

.image-modal.open .modal-img {
  transform: scale(1);
}

.image-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.2);
}

.image-modal .modal-close:focus {
  outline: 2px solid var(--accent-soft);
}

.attacca-header-row {
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.attacca-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: #e5edff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
}

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

.attacca-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.attacca-store-badges img {
  display: block;
  height: 40px;
}
