/* ===== Hydromation Software — Modern Redesign ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0077b6;
  --primary-light: #0097d9;
  --primary-pale: #e0f2fe;
  --accent: #00b4d8;
  --navy: #0a1628;
  --navy-mid: #111d32;
  --navy-light: #1a2940;
  --white: #ffffff;
  --off-white: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --green: #10b981;
  --amber: #f59e0b;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --shadow-glow: 0 0 60px rgba(0,151,217,.15);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container, .section-container, .footer-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p { color: var(--text-secondary); line-height: 1.7; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; }
.section-label {
  display: inline-block; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--primary-light); margin-bottom: 12px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-size: .95rem; font-weight: 600;
  border: 2px solid transparent; cursor: pointer;
  transition: var(--transition); white-space: nowrap; font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 2px 12px rgba(0,119,182,.25); }
.btn-primary:hover { background: #006399; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,119,182,.35); }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); background: var(--primary-pale); }
.btn-ghost { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-portal { background: var(--navy) !important; color: var(--white) !important; border-color: var(--navy) !important; }
.btn-portal:hover { background: var(--navy-mid) !important; transform: translateY(-1px); }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light); transition: var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-container {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 36px; width: 36px; object-fit: contain; }
.logo-text { color: #1a6fa0; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: .9rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding-top: 72px; overflow: hidden; background: var(--navy);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,151,217,.12), transparent),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,119,182,.08), transparent);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.hero-container {
  max-width: 1140px; margin: 0 auto; padding: 80px 24px;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-title { color: var(--white); margin-bottom: 24px; line-height: 1.15; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { color: rgba(255,255,255,.6); font-size: 1.15rem; margin-bottom: 36px; max-width: 480px; line-height: 1.75; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-visual-card {
  background: var(--navy-mid); border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08); padding: 28px;
  box-shadow: var(--shadow-glow); width: 100%;
}
.visual-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.visual-dot { width: 8px; height: 8px; border-radius: 50%; }
.visual-dot.green { background: var(--green); }
.visual-dot.amber { background: var(--amber); }
.visual-dot.blue { background: var(--primary-light); }
.visual-title { font-size: .82rem; color: rgba(255,255,255,.7); font-weight: 600; }

.visual-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.metric-card {
  background: rgba(255,255,255,.04); border-radius: var(--radius);
  padding: 14px; border: 1px solid rgba(255,255,255,.06);
}
.metric-label { font-size: .7rem; color: rgba(255,255,255,.4); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.metric-value { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.metric-value.green { color: var(--green); }
.metric-value.blue { color: var(--primary-light); }
.metric-value.amber { color: var(--amber); }

.visual-bar-group { display: flex; flex-direction: column; gap: 10px; }
.visual-bar { display: flex; align-items: center; gap: 12px; }
.bar-label { font-size: .78rem; color: rgba(255,255,255,.4); min-width: 80px; }
.bar-track { flex: 1; height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; }
.bar-fill.blue { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.bar-fill.green { background: linear-gradient(90deg, #059669, var(--green)); }
.bar-fill.amber { background: linear-gradient(90deg, #d97706, var(--amber)); }

/* Sub-page hero */
.hero-dark { min-height: 40vh; background: var(--navy); }
.hero-dark .hero-content { text-align: center; max-width: 700px; margin: 0 auto; padding: 80px 24px; }
.hero-dark h1 { color: var(--white); }
.hero-dark p { color: rgba(255,255,255,.6); font-size: 1.1rem; }

/* ===== SECTIONS ===== */
section { padding: 100px 0; }
.bg-white { background: var(--white); }
.bg-light { background: var(--off-white); }
.bg-dark { background: var(--navy); }

/* ===== PRODUCT CARDS ===== */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; border: 1px solid var(--border);
  transition: var(--transition); display: block; position: relative; overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-pale); }
.product-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.product-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.product-card p { font-size: .95rem; margin-bottom: 16px; }
.card-link { font-size: .9rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }

/* ===== FEATURE SHOWCASE ===== */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; padding: 40px 0;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-label {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--primary-light); margin-bottom: 12px;
}
.feature-content h3 { font-size: 1.8rem; margin-bottom: 16px; }
.feature-content p { margin-bottom: 24px; }
.feature-list { margin-bottom: 28px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0; font-size: .95rem; color: var(--text-secondary);
}
.feature-list li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-pale); margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%230077b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.feature-visual {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid rgba(255,255,255,.06);
  position: relative; overflow: hidden;
}
.feature-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,151,217,.08), transparent 70%);
  pointer-events: none;
}

/* ===== STATS ===== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; padding: 60px 0; }
.stat-number {
  font-size: 2.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: .85rem; color: rgba(255,255,255,.4); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== AUDIENCE ===== */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.audience-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; border: 1px solid var(--border);
  text-align: center; transition: var(--transition);
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.audience-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; background: var(--primary-pale);
}
.audience-card h3 { margin-bottom: 10px; }
.audience-card p { font-size: .9rem; }

/* ===== CTA ===== */
.cta-section {
  background: var(--navy); padding: 100px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,151,217,.1), transparent);
  pointer-events: none;
}
.cta-content { max-width: 600px; margin: 0 auto; position: relative; z-index: 2; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.6); font-size: 1.1rem; margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy); color: rgba(255,255,255,.5);
  padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,.06);
}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-img { height: 32px; width: 32px; object-fit: contain; }
.footer-logo-text { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.footer-description { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.4); }
.footer-title { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; font-weight: 600; }
.footer-links a { display: block; padding: 5px 0; font-size: .9rem; color: rgba(255,255,255,.4); transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); font-size: .8rem;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,.3); transition: var(--transition); }
.footer-legal a:hover { color: var(--primary-light); }
.copyright { color: rgba(255,255,255,.3); }
.footer-portal { text-align: center; padding-top: 20px; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.04); }
.portal-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.25); font-size: .8rem; font-weight: 500;
  transition: var(--transition); padding: 8px 20px;
  border: 1px solid rgba(255,255,255,.06); border-radius: 50px;
}
.portal-link:hover { color: var(--primary-light); border-color: rgba(0,151,217,.2); background: rgba(0,151,217,.05); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; max-width: 1000px; margin: 0 auto; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; transition: var(--transition); background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,119,182,.1); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .85rem; color: var(--text-light); margin-top: 12px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.info-card { background: var(--off-white); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--border-light); }
.info-icon { font-size: 1.5rem; flex-shrink: 0; }
.benefits-list { margin-top: 24px; }
.benefits-title { font-weight: 600; margin-bottom: 12px; font-size: 1.1rem; }
.benefits-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .95rem; color: var(--text-secondary); }
.benefits-list li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: .85rem; }
.success-message { display: none; text-align: center; padding: 40px; }
.success-message.active { display: block; }
.success-icon { font-size: 3rem; margin-bottom: 16px; }

/* ===== ABOUT ===== */
.story-content { max-width: 720px; margin: 0 auto; }
.story-content p { font-size: 1.05rem; margin-bottom: 20px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.value-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; border: 1px solid var(--border); text-align: center;
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon { font-size: 2.5rem; margin-bottom: 16px; }
.value-card h3 { margin-bottom: 12px; }
.value-card p { font-size: .9rem; }

/* ===== PLATFORM ===== */
.product-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; margin-bottom: 80px;
  padding: 0 24px; max-width: 1140px; margin-left: auto; margin-right: auto;
}
.product-showcase.reverse { direction: rtl; }
.product-showcase.reverse > * { direction: ltr; }
.product-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-pale); color: var(--primary);
  padding: 6px 14px; border-radius: 50px; font-size: .8rem; font-weight: 600; margin-bottom: 16px;
}
.product-title, .product-info h3 { font-size: 1.8rem; margin-bottom: 16px; }
.product-description, .product-info > p { margin-bottom: 24px; color: var(--text-secondary); }
.features-list { margin-bottom: 28px; }
.features-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0; font-size: .95rem; color: var(--text-secondary);
}
.features-list li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-pale); margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%230077b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.product-mockup, .mockup-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.dark-theme { background: var(--navy-light); color: var(--white); border-color: rgba(255,255,255,.12); box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.06); }
.mockup-header { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 600; font-size: .85rem; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 8px; }
.mockup-body { padding: 20px; }
.item-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.item-row:last-child { border-bottom: none; }
.alert-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .85rem; color: rgba(255,255,255,.8); }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.alert-item.critical .alert-dot { background: #ef4444; }
.alert-item.high .alert-dot { background: var(--amber); }
.alert-item.standard .alert-dot { background: var(--green); }
.schedule-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.schedule-time { font-size: .8rem; color: rgba(255,255,255,.5); min-width: 45px; }
.schedule-detail { flex: 1; }
.schedule-client { font-size: .8rem; color: rgba(255,255,255,.45); }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.contact-item:last-child { border-bottom: none; }
.contact-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: var(--white); }
.contact-name { font-size: .85rem; color: var(--white); }
.contact-meta { font-size: .75rem; color: rgba(255,255,255,.35); }
.contact-details { flex: 1; }
.contact-status { font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.contact-status.active { background: rgba(16,185,129,.2); color: #34d399; }
.contact-status.prospect { background: rgba(0,180,216,.2); color: #22d3ee; }
.showcase-content { padding: 80px 0; }

/* ===== DARK SHOWCASE SECTIONS ===== */
.showcase-dark { background: var(--navy); }
.showcase-dark .product-info h3 { color: var(--white); }
.showcase-dark .product-info > p { color: rgba(255,255,255,.6); }
.showcase-dark .features-list li { color: rgba(255,255,255,.55); }
.showcase-dark .features-list li::before {
  background: rgba(255,255,255,.08);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.showcase-dark .mockup-card { border-color: rgba(255,255,255,.1); }

/* Dark product cards (index page) */
.products-dark { background: var(--navy); }
.products-dark .section-header h2 { color: var(--white); }
.products-dark .section-header p { color: rgba(255,255,255,.55); }
.products-dark .product-card {
  background: var(--navy-mid); border-color: rgba(255,255,255,.08);
}
.products-dark .product-card:hover { border-color: rgba(0,151,217,.3); box-shadow: 0 12px 48px rgba(0,0,0,.3); }
.products-dark .product-card h3 { color: var(--white); }
.products-dark .product-card p { color: rgba(255,255,255,.5); }
.products-dark .card-link { color: var(--primary-light); }

/* Dark feature rows (index How It Works) */
.features-dark { background: var(--navy); }
.features-dark .section-header h2 { color: var(--white); }
.features-dark .section-header p { color: rgba(255,255,255,.55); }
.features-dark .feature-label { color: var(--accent); }
.features-dark .feature-content h3 { color: var(--white); }
.features-dark .feature-content p { color: rgba(255,255,255,.55); }
.features-dark .feature-list li { color: rgba(255,255,255,.55); }
.features-dark .feature-list li::before {
  background: rgba(255,255,255,.08);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* Dark portal dashboard */
.portal-dashboard-dark { background: var(--navy); }
.portal-dashboard-dark .portal-welcome h2 { color: var(--white); }
.portal-dashboard-dark .portal-welcome p { color: rgba(255,255,255,.55); }
.portal-dashboard-dark .portal-dashboard-header { border-bottom-color: rgba(255,255,255,.08); }
.portal-dashboard-dark .portal-app-card {
  background: var(--navy-mid); border-color: rgba(255,255,255,.08);
}
.portal-dashboard-dark .portal-app-card:hover { border-color: rgba(0,151,217,.3); box-shadow: 0 12px 48px rgba(0,0,0,.3); }
.portal-dashboard-dark .portal-app-name { color: var(--white); }
.portal-dashboard-dark .portal-app-desc { color: rgba(255,255,255,.5); }
.portal-dashboard-dark .portal-app-launch { color: var(--primary-light); }

/* ===== PORTAL ===== */
.portal-login-section { padding: 60px 0 80px; background: var(--off-white); }
.portal-login-card {
  max-width: 440px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg);
  padding: 48px 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.portal-login-header { text-align: center; margin-bottom: 32px; }
.portal-lock-icon { margin-bottom: 16px; }
.portal-login-header h2 { margin-bottom: 8px; font-size: 1.5rem; }
.portal-login-header p { font-size: .95rem; color: var(--text-secondary); }
.portal-login-form { display: flex; flex-direction: column; gap: 20px; }
.portal-form-group { display: flex; flex-direction: column; }
.portal-form-group label { font-size: .85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.portal-form-group input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; transition: var(--transition);
}
.portal-form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,119,182,.1); }
.portal-form-options { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.portal-remember { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); cursor: pointer; }
.portal-remember input { width: auto; margin: 0; }
.portal-forgot { color: var(--primary); font-weight: 500; font-size: .85rem; }
.portal-forgot:hover { text-decoration: underline; }
.portal-login-note { font-size: .8rem; color: var(--text-light); text-align: center; margin-top: 4px; }

.portal-dashboard { padding: 60px 0 80px; background: var(--off-white); min-height: 60vh; }
.portal-dashboard-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.portal-welcome h2 { margin-bottom: 4px; font-size: 1.6rem; }
.portal-welcome p { color: var(--text-secondary); }
.portal-apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.portal-app-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; border: 1px solid var(--border);
  transition: var(--transition); display: block; text-align: center; cursor: pointer;
}
.portal-app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-pale); }
.portal-app-icon { width: 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.portal-app-name { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-primary); }
.portal-app-desc { font-size: .9rem; color: var(--text-secondary); margin-bottom: 16px; }
.portal-app-launch { font-size: .9rem; font-weight: 600; color: var(--primary); }

/* ===== ANIMATIONS ===== */
.animate-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
  .product-showcase { grid-template-columns: 1fr; }
  .product-showcase.reverse { direction: ltr; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 24px; gap: 16px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex !important; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-dark { min-height: auto; }
  .visual-metrics { grid-template-columns: 1fr; }
  .portal-apps-grid { grid-template-columns: 1fr; }
  .portal-login-card { padding: 32px 24px; margin: 0 16px; }
  .portal-dashboard-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
}
