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

:root {
  --bg:        #0d0f14;
  --surface:   #151820;
  --border:    #1f2330;
  --accent:    #6366f1;
  --accent-2:  #818cf8;
  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --radius:    12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ── Nav ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13,15,20,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
}

.logo span { color: var(--accent); }

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

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

/* ── Hero ────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.18), transparent),
    var(--bg);
}

/* Page-specific hero heights */
.page-home .hero    { min-height: 92vh; }
.page-product .hero { min-height: 72vh; }

.badge {
  display: inline-block;
  padding: .35rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent-2);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  background: rgba(99,102,241,.06);
}

/* Page-specific hero headings */
.page-home .hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.page-product .hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

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

.hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }

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

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

/* ── Section chrome ──────────────────────────────────── */
section { padding: 6rem 2rem; }

.container {
  max-width: 1060px;
  margin: 0 auto;
}

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3.5rem;
}

/* ── Card (shared) ───────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .25s, transform .2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: block;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .6rem;
}

.card p {
  color: var(--muted);
  font-size: .95rem;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════
   HOME PAGE (index.html)
   ══════════════════════════════════════════════════════ */

/* ── Services grid ───────────────────────────────────── */
#services { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Products ────────────────────────────────────────── */
#products { background: var(--bg); }

.products-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s, transform .2s;
  max-width: 680px;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.product-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.product-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.product-info p {
  color: var(--muted);
  font-size: .97rem;
  margin-bottom: 1rem;
}

.product-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

/* ── Approach ────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pillar { display: flex; flex-direction: column; gap: .5rem; }

.pillar-number {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
}

.pillar h4 {
  font-size: 1rem;
  font-weight: 600;
}

.pillar p { color: var(--muted); font-size: .92rem; }

/* ── Contact ─────────────────────────────────────────── */
#contact { background: var(--surface); }

.contact-inner {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.contact-copy { flex: 1 1 300px; }

.contact-info {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item { display: flex; flex-direction: column; }

.contact-item .label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .2rem;
}

.contact-item a, .contact-item span {
  color: var(--muted);
  text-decoration: none;
  font-size: .97rem;
}

.contact-item a:hover { color: var(--text); }

/* Suppress bottom margin on the contact section's subtitle */
#contact .section-subtitle { margin-bottom: 0; }

/* ── Imprint ─────────────────────────────────────────── */
#imprint { border-top: 1px solid var(--border); }

.imprint-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.9;
}

.imprint-box h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem;
  margin-top: 1.5rem;
}

.imprint-box h3:first-child { margin-top: 0; }

.imprint-box a { color: var(--accent-2); text-decoration: none; }
.imprint-box a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   PRODUCT PAGE (simple-text-notes/index.html)
   ══════════════════════════════════════════════════════ */

/* Restore original card sizes for the product page */
.page-product .card h3 { font-size: 1.05rem; }
.page-product .card p  { font-size: .92rem; }

/* ── App icon & platform tags ────────────────────────── */
.app-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(99,102,241,.35));
}

.platforms {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.platform-tag {
  display: inline-block;
  padding: .3rem .8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--muted);
  background: var(--surface);
}

/* ── Features grid ───────────────────────────────────── */
#features { background: var(--surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ── Screenshots ─────────────────────────────────────── */
#screenshots { background: var(--bg); }

.screenshots-intro {
  margin-bottom: 3rem;
}

.screenshots-device-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.screenshots-group {
  margin-bottom: 3.5rem;
}

.screenshots-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.screenshots-row::-webkit-scrollbar { height: 4px; }
.screenshots-row::-webkit-scrollbar-track { background: transparent; }
.screenshots-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.screenshot-frame {
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .2s, border-color .25s;
}

.screenshot-frame:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.screenshot-frame.iphone { width: 220px; }
.screenshot-frame.ipad   { width: 360px; }
.screenshot-frame.mac    { width: 480px; }

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.appstore-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.appstore-cta p {
  color: var(--muted);
  font-size: .95rem;
  flex: 1;
}

/* ── App Info ────────────────────────────────────────── */
#info { background: var(--surface); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.info-item .label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.info-item .value {
  color: var(--text);
  font-size: .95rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
  nav ul { display: none; }

  /* Home page */
  .product-card { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .contact-inner { flex-direction: column; gap: 2rem; }
  .imprint-box { padding: 1.5rem; }

  /* Product page */
  .screenshot-frame.ipad { width: 280px; }
  .screenshot-frame.mac  { width: 320px; }
  .appstore-cta { flex-direction: column; align-items: flex-start; }
}
