/* ====== Pagei.club - Clean Product + Tutorial Hub ====== */
:root {
  --bg: #0b0f17;
  --card: #111827;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --white: #ffffff;
  --line: rgba(255,255,255,.08);
  --accent: #22c55e;
  --accent2: #60a5fa;
  --danger: #ef4444;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1150px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: radial-gradient(900px 500px at 10% 10%, rgba(96,165,250,.12), transparent 60%),
              radial-gradient(700px 400px at 90% 20%, rgba(34,197,94,.10), transparent 60%),
              var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ====== Header ====== */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 23, 0.75);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .logo{
  width: clamp(40px, 4.2vw, 54px);
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 10px; /* looks premium + still sharp */
  background: url("Pageilogo.png") center/contain no-repeat;
  box-shadow: none;
  flex: 0 0 auto;
}

/* tighter spacing on very small phones */
@media (max-width: 520px){
  .brand{ gap: 8px; }
  .brand .name strong{ font-size: 14px; }
  .brand .name span{ font-size: 11px; }
}





.brand .name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand .name strong { font-size: 15px; letter-spacing: .2px; }
.brand .name span { font-size: 12px; color: var(--muted); }

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

.navlinks a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: .2s ease;
  font-size: 14px;
}

.navlinks a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  transition: .2s ease;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.06); }

.btn-primary {
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(96,165,250,.85));
  color: #0b0f17;
  border-color: transparent;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(96,165,250,.35);
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 13px;
}

/* ====== Hero ====== */
.hero {
  padding: 64px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: stretch;
}

.hero h1 {
  font-size: 46px;
  margin: 12px 0 12px;
  letter-spacing: -0.6px;
  line-height: 1.05;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

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

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
  min-height: 260px;
}

.hero-card .mini {
  display: grid;
  gap: 12px;
}

.kpi {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.18);
}
.kpi strong { font-size: 18px; }
.kpi span { font-size: 13px; color: var(--muted); }

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

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.2px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: .2s ease;
}

.card:hover { transform: translateY(-2px); background: rgba(255,255,255,.05); }

.card .tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.16);
}

.card h3 {
  margin: 10px 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.card .card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ====== Video embeds ====== */
.video {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,.25);
}

.video iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* ====== Footer ====== */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ====== Forms ====== */
.form {
  display: grid;
  gap: 10px;
}

.input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--text);
  outline: none;
  font-size: 14px;
}

textarea { min-height: 130px; resize: vertical; }

.helper {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ====== Responsive ====== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .video iframe { height: 300px; }
  .hero h1 { font-size: 40px; }
}


/* =========================================================
   ✅ RESPONSIVE ORGANIZED LAYOUT PATCH (Mobile + PC)
   Paste at END of assets/style.css
   ========================================================= */

/* Better container width + padding */
.container{
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* Navbar should wrap nicely on small screens */
.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Nav links should never break layout on mobile */
.navlinks{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Make pills + buttons consistent */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
}

/* ✅ Universal Grid: auto responsive */
.grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

/* Cards should stretch equal height */
.card{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Card spacing stays clean */
.card h3{
  margin-bottom: 8px;
}
.card p{
  margin-top: 0;
}

/* Make actions always sit at bottom */
.card-actions{
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ✅ Hero layout: 2-column on desktop, stack on mobile */
.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

/* ✅ Fix for embedded videos (iframe) responsiveness */
.card iframe{
  width: 100% !important;
  max-width: 100%;
  border: 0;
}

/* ✅ Better spacing for section heading + button alignment */
.section-title{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ✅ Mobile improvements */
@media (max-width: 900px){
  .hero-grid{
    grid-template-columns: 1fr;
  }

  .navlinks{
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .navlinks a{
    flex: 0 0 auto;
  }
}

/* ✅ Small mobile (Corporate) */
@media (max-width: 600px){

  /* Header stays clean and single-row */
  .navbar{
    flex-wrap: nowrap;
    gap: 10px;
  }

  /* Hide header nav links on mobile (keeps it corporate) */
  .navlinks{ display: none !important; }

  /* Header button should NOT become full width */
  .header .btn{
    width: auto !important;
    white-space: nowrap;
    padding: 10px 12px;
    border-radius: 14px;
  }

  /* Only HERO buttons can be full width */
  .hero-actions .btn{
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .card-actions{
    flex-direction: column;
  }

  .section-title a.btn{
    width: 100%;
  }

  /* Hero logo + text centered on mobile */
  .hero-title{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

.hero-title{
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}

.hero-biglogo{
  width: clamp(180px, 28vw, 380px);
  aspect-ratio: 1 / 1;
  height: auto;
  background: url("PageiMascot.png") center/contain no-repeat;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.6));
  flex: 0 0 auto;
}

/* Tablet + Mobile: stack logo above text cleanly */
@media (max-width: 900px){
  .hero-title{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Small mobile: keep it centered + not oversized */
@media (max-width: 520px){
  .hero-title{
    align-items: center;
    text-align: center;
  }
  .hero-biglogo{
    width: min(82vw, 320px);
  }
}



