/*
Theme Name: StudentNote
Theme URI: https://studentnote.in
Author: StudentNote Team
Author URI: https://studentnote.in
Description: Modern SaaS-style WordPress theme for StudentNote Attendance & School Management Software
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: studentnote
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --purple-50: #EEEDFE;
  --purple-100: #CECBF6;
  --purple-200: #AFA9EC;
  --purple-400: #7F77DD;
  --purple-600: #534AB7;
  --purple-800: #3C3489;
  --purple-900: #26215C;
  --blue-400: #378ADD;
  --blue-600: #185FA5;
  --white: #ffffff;
  --gray-50: #F8F9FA;
  --gray-100: #F1F0F9;
  --gray-200: #E2E0F0;
  --gray-600: #6B7280;
  --gray-900: #1F2937;
  --text-dark: #1a1a2e;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(83,74,183,0.08);
  --shadow-md: 0 4px 20px rgba(83,74,183,0.12);
  --shadow-lg: 0 10px 40px rgba(83,74,183,0.18);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --gradient: linear-gradient(135deg, #534AB7 0%, #185FA5 100%);
  --gradient-light: linear-gradient(135deg, #EEEDFE 0%, #E6F1FB 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p { line-height: 1.75; }

/* ===== UTILITY CLASSES ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-purple { color: var(--purple-600); }
.text-muted { color: var(--text-muted); }
.section { padding: 80px 0; }
.section-alt { background: var(--gray-100); }

.section-tag {
  display: inline-block;
  background: var(--purple-50);
  color: var(--purple-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-white {
  background: var(--white);
  color: var(--purple-600);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

.btn-outline-purple {
  background: transparent;
  color: var(--purple-600);
  border: 2px solid var(--purple-600);
}
.btn-outline-purple:hover { background: var(--purple-50); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(83, 74, 183, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(83,74,183,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1160px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--purple-200); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }

.nav-cta {
  background: var(--white);
  color: var(--purple-600);
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  border: none;
  transition: all 0.2s;
  margin-left: 8px;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: var(--gradient);
  padding: 90px 24px 80px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.hero h1 .highlight { color: var(--purple-200); }

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 40px;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  font-weight: 500;
}

/* ===== FOR SECTION ===== */
.for-section { padding: 50px 0; text-align: center; }
.for-pills {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.for-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--purple-50);
  color: var(--purple-600);
  border: 1.5px solid var(--purple-100);
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}
.for-pill:hover {
  background: var(--purple-600);
  color: var(--white);
  border-color: var(--purple-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.for-pill svg { width: 20px; height: 20px; }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--purple-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--purple-600);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== APPS SECTION ===== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.25s;
}

.app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--purple-200);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.app-icon svg {
  width: 34px;
  height: 34px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-card h3 { font-size: 18px; margin-bottom: 8px; }
.app-card p { font-size: 14px; color: var(--text-muted); }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.price-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: all 0.25s;
}

.price-card:hover { box-shadow: var(--shadow-md); }

.price-card.featured {
  border: 2.5px solid var(--purple-600);
  position: relative;
  box-shadow: var(--shadow-md);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple-600);
  margin-bottom: 6px;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin: 16px 0 4px;
}

.price-amount sup { font-size: 24px; vertical-align: super; font-weight: 700; }
.price-per { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.price-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.price-features { margin-bottom: 28px; }

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.price-features li:last-child { border-bottom: none; }

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--purple-600);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-addon {
  max-width: 640px;
  margin: 40px auto 0;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
}

.wa-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-icon svg { width: 28px; height: 28px; fill: #fff; }

.whatsapp-addon h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.whatsapp-addon p { font-size: 14px; opacity: 0.9; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient);
  padding: 80px 24px;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 17px;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--purple-900);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo { font-size: 24px; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; }

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ===== CONTACT FORM ===== */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--purple-600);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px rgba(83,74,183,0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--purple-800);
    padding: 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-links.open a { padding: 12px 16px; font-size: 16px; }
  .hero-stats { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
