/* Modern minimalist theme — mobile-first */
/* Variables */
:root{
  --bg: #fbfbfd;
  --card: #ffffff;
  --muted: #7b7f87;
  --text: #0f1724;
  --primary: #0b6df0;
  --primary-600: #085cd6;
  --accent: #6a8eeb;
  --shadow: 0 6px 18px rgba(12,20,36,0.06);
  --glass: rgba(255,255,255,0.6);
  --radius: 12px;
  --container: 1100px;
  --gap: 1rem;
  --border: #e6e9ef;
  --focus: 0 0 0 4px rgba(11,109,240,0.12);
  --transition: 240ms cubic-bezier(.22,.9,.35,1);
  font-size: 16px;
}

/* Reset / base */
* {box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:linear-gradient(180deg, var(--bg), #f6f8fb 120px);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  padding-bottom:4rem;
}

/* Layout container */
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:1rem;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter: blur(6px);
  background:linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.7));
  border-bottom:1px solid var(--border);
  box-shadow: 0 2px 8px rgba(12,20,36,0.02);
}
.header-inner{
  display:flex;
  align-items:center;
  gap:1rem;
  padding:0.8rem 0;
}
.brand{
  display:flex;
  gap:0.85rem;
  align-items:center;
  text-decoration:none;
  color:inherit;
}
.logo rect{ fill: var(--primary) }
.brand-text .site-name{ font-weight:600; font-size:1rem; }
.brand-text .tagline{ font-size:0.78rem; color:var(--muted); }

/* Navigation */
.nav{ margin-left:auto; display:flex; align-items:center; }
.nav-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.45rem;
  border-radius:8px;
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
  transition:var(--transition);
}
.nav-toggle:focus{ outline:none; box-shadow:var(--focus); }
.nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:0.5rem;
  align-items:center;
}
.nav-list a{
  display:inline-block;
  padding:0.45rem 0.7rem;
  border-radius:8px;
  text-decoration:none;
  color:var(--muted);
  font-weight:500;
  transition:var(--transition);
  font-size:0.95rem;
}
.nav-list a:hover{ color:var(--text); background:rgba(11,109,240,0.04); }
.nav-list a.active{ color:var(--primary); background:rgba(11,109,240,0.06); }

/* Hero */
.main-content{ padding:1.6rem 0 2rem; }
.hero{ padding:2rem 0 1rem; text-align:center; }
.hero h1{ margin:0 0 0.5rem; font-size:1.6rem; letter-spacing:-0.02em; }
.lead{ margin:0 auto; max-width:54ch; color:var(--muted); margin-top:0.6rem; }
.hero-cta{ margin-top:1rem; display:flex; gap:0.6rem; justify-content:center; flex-wrap:wrap; }

/* Buttons */
.btn{
  display:inline-flex;
  gap:0.55rem;
  align-items:center;
  padding:0.55rem 0.9rem;
  border-radius:10px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:600;
  text-decoration:none;
  transition:transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:active{ transform:translateY(1px); }
.btn.primary{ background:linear-gradient(180deg,var(--primary),var(--primary-600)); color:white; box-shadow: 0 6px 18px rgba(11,109,240,0.12); }
.btn.ghost{ background:transparent; color:var(--primary); border:1px solid rgba(11,109,240,0.08); }
.btn.outline{ background:transparent; color:var(--text); border:1px solid var(--border); }
.btn.placeholder{ opacity:0.7; cursor:not-allowed; }

/* Cards grid */
.cards{
  display:grid;
  gap:1rem;
  grid-template-columns:1fr;
  margin-top:1.25rem;
  align-items:stretch;
}
.card{
  display:flex;
  gap:1rem;
  flex-direction:column;
  padding:1.05rem;
  background:var(--card);
  border-radius:14px;
  box-shadow:var(--shadow);
  text-decoration:none;
  color:inherit;
  border:1px solid transparent;
  transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover{ transform:translateY(-6px); box-shadow:0 14px 30px rgba(12,20,36,0.08); border-color:rgba(11,109,240,0.06); }
.card h3{ margin:0 0 0.5rem; font-size:1.05rem; }
.card p{ margin:0; color:var(--muted); }
.card .card-icon{ width:44px; height:44px; background:linear-gradient(180deg,var(--accent),#8fb1ff); border-radius:10px; display:flex; align-items:center; justify-content:center; color:white; }

/* Tools grid (teachers) */
.tools-grid{
  margin-top:1rem;
  display:grid;
  gap:1rem;
  grid-template-columns:1fr;
}
.tool.card{ padding:1rem; }
.tool-head{ display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:0.6rem; }
.tool-mini{ color:var(--muted); font-size:0.85rem; }

/* Panel (lesson planner) */
.panel{
  margin-top:0.75rem;
  padding:0.9rem;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(11,109,240,0.02), rgba(250,250,255,0.6));
  border:1px solid var(--border);
  box-shadow: 0 8px 20px rgba(12,20,36,0.03);
  transform-origin:top;
  transition: opacity 260ms var(--transition), transform 260ms var(--transition), max-height 260ms ease;
  overflow:hidden;
  max-height:0;
  opacity:0;
}
.panel[aria-hidden="false"]{
  max-height:1000px;
  opacity:1;
  transform:translateY(0);
}

/* Inputs & forms */
label{ display:block; font-weight:600; margin-bottom:0.3rem; font-size:0.95rem; }
input, textarea, select{
  width:100%;
  padding:0.6rem 0.75rem;
  border-radius:10px;
  border:1px solid var(--border);
  background:transparent;
  transition:box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  font-size:0.95rem;
}
input:focus, textarea:focus{
  outline:none;
  box-shadow:var(--focus);
  border-color:var(--primary);
}

/* panel actions */
.panel-actions{ display:flex; gap:0.5rem; margin-top:0.6rem; }

/* sample output */
.sample-output{
  margin-top:0.75rem;
  padding:0.8rem;
  border-radius:8px;
  background:rgba(12,20,36,0.02);
  min-height:3.2rem;
  transition:opacity var(--transition), transform var(--transition);
}
.sample-output .muted{ color:var(--muted); margin:0; }

/* Contact form specifics */
.contact-form{ max-width:720px; margin-top:0.75rem; }
.form-row{ margin-bottom:0.6rem; }
.form-hint{ display:block; font-size:0.8rem; color:var(--muted); margin-top:0.25rem; }
.form-actions{ margin-top:0.6rem; display:flex; gap:0.5rem; align-items:center; }
.form-message{
  margin-top:0.6rem;
  padding:0.6rem 0.8rem;
  border-radius:8px;
  font-weight:600;
  opacity:0;
  transform:translateY(6px);
  transition:opacity 240ms var(--transition), transform 240ms var(--transition);
}
.form-message.show{ opacity:1; transform:translateY(0); }

/* utility text */
.muted{ color:var(--muted); }
.small{ font-size:0.9rem; }

/* page cards */
.page-card{ background:var(--card); padding:1.2rem; border-radius:12px; box-shadow:var(--shadow); text-align:center; }

/* Footer */
.site-footer{ margin-top:2.4rem; border-top:1px solid var(--border); padding:1.1rem 0; background:transparent; }
.footer-inner{ display:flex; gap:1rem; align-items:center; justify-content:space-between; flex-wrap:wrap; color:var(--muted); }
.footer-links{ list-style:none; display:flex; gap:0.6rem; margin:0; padding:0; }
.footer-links a{ text-decoration:none; color:var(--muted); font-size:0.95rem; }

/* Responsive */
@media (min-width:720px){
  .cards{ grid-template-columns: repeat(3, 1fr); }
  .tools-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .header-inner{ gap:1.25rem; }
  .hero h1{ font-size:1.9rem; }
}
@media (min-width:1100px){
  .hero h1{ font-size:2.25rem; }
}

/* Navigation collapse for small screens */
@media (max-width:860px){
  .nav-list{ position: absolute; right:1rem; top:64px; flex-direction:column; background:var(--card); border-radius:10px; box-shadow:var(--shadow); padding:0.6rem; display:none; min-width:200px; }
  .nav-list.show{ display:flex; }
}
