Files
Aira-Company-Website/index.html
T

885 lines
29 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Aira Group of Technology — Sovereign Intelligence & Systems</title>
<link rel="icon" type="image/png" href="/assets/logo.png">
<meta name="description" content="Aira Group of Technology — Independent foundation engineering and sovereign artificial intelligence architecture founded by Er. Adam Eehan. Bengaluru • Calicut • Abu Dhabi.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-sky-top: #dcecfb;
--bg-sky-mid: #8ec1f5;
--bg-sky-deep: #2563eb;
--bg-sky-bottom: #1e3a8a;
--card-bg: #ffffff;
--text-main: #0f172a;
--text-muted: #334155;
--text-dim: #64748b;
--accent-blue: #1665d8;
--accent-cyan: #0284c7;
--border-soft: rgba(226, 232, 240, 0.85);
--card-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
--radius-card: 26px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
body {
background: linear-gradient(180deg, #dcecfb 0%, #b3d7fc 18%, #78b1f8 48%, #2563eb 82%, #172554 100%);
font-family: 'Plus Jakarta Sans', sans-serif;
color: var(--text-main);
min-height: 100vh;
overflow-x: hidden;
padding-bottom: 0;
}
.container {
width: 100%;
max-width: 960px;
margin: 0 auto;
padding: 24px 16px 0;
}
/* Floating White Card Master Style */
.floating-card {
background: var(--card-bg);
border-radius: var(--radius-card);
box-shadow: var(--card-shadow);
border: 1px solid var(--border-soft);
padding: 40px 32px;
margin-bottom: 32px;
position: relative;
}
@media (max-width: 640px) {
.floating-card {
padding: 28px 20px;
border-radius: 20px;
margin-bottom: 22px;
}
}
/* Navbar Header */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
margin-bottom: 24px;
}
.brand-wrap {
display: flex;
align-items: center;
gap: 14px;
text-decoration: none;
color: inherit;
}
.brand-logo {
width: 48px;
height: 48px;
border-radius: 12px;
border: 1px solid #e2e8f0;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.brand-name {
font-size: 18px;
font-weight: 800;
letter-spacing: -0.02em;
color: #0f172a;
}
.brand-tag {
font-size: 11px;
color: #64748b;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.nav-links {
display: flex;
gap: 18px;
align-items: center;
}
.nav-link {
font-size: 13.5px;
font-weight: 600;
color: #334155;
text-decoration: none;
transition: color 0.2s;
}
.nav-link:hover {
color: var(--accent-blue);
}
.btn-pill {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 28px;
border-radius: 50px;
background-color: var(--accent-blue);
color: #ffffff !important;
font-size: 14px;
font-weight: 600;
text-decoration: none;
letter-spacing: 0.01em;
box-shadow: 0 4px 14px rgba(22, 101, 216, 0.28);
transition: all 0.2s ease;
border: none;
cursor: pointer;
}
.btn-pill:hover {
background-color: #1d4ed8;
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(22, 101, 216, 0.35);
}
/* Hero Section */
.hero-badge {
display: inline-block;
padding: 6px 14px;
background: #eff6ff;
border: 1px solid #bfdbfe;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
color: var(--accent-blue);
letter-spacing: 0.08em;
text-transform: uppercase;
margin-bottom: 18px;
}
.hero-title {
font-size: 38px;
font-weight: 900;
line-height: 1.18;
letter-spacing: -0.03em;
color: #0f172a;
margin-bottom: 18px;
}
@media (max-width: 640px) {
.hero-title {
font-size: 28px;
}
.nav-links {
display: none;
}
}
.hero-subtitle {
font-size: 16px;
line-height: 1.7;
color: #334155;
margin-bottom: 28px;
max-width: 720px;
}
.stats-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
padding-top: 24px;
border-top: 1px solid #f1f5f9;
margin-top: 28px;
}
@media (max-width: 640px) {
.stats-row {
grid-template-columns: 1fr;
gap: 12px;
}
}
.stat-item h4 {
font-size: 22px;
font-weight: 800;
color: var(--accent-blue);
margin-bottom: 4px;
}
.stat-item p {
font-size: 12px;
color: #64748b;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
}
/* Section Headings */
.section-head {
margin-bottom: 24px;
}
.section-badge {
font-size: 11.5px;
font-weight: 700;
color: var(--accent-blue);
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 6px;
}
.section-title {
font-size: 24px;
font-weight: 800;
color: #0f172a;
letter-spacing: -0.02em;
}
/* Ecosystem Grid */
.grid-2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
@media (max-width: 640px) {
.grid-2 {
grid-template-columns: 1fr;
}
}
.feature-box {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 18px;
padding: 24px;
transition: all 0.25s ease;
}
.feature-box:hover {
background: #ffffff;
border-color: #cbd5e1;
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.feature-icon {
font-size: 24px;
margin-bottom: 12px;
display: inline-block;
}
.feature-box h3 {
font-size: 17px;
font-weight: 700;
color: #0f172a;
margin-bottom: 8px;
}
.feature-box p {
font-size: 13.5px;
line-height: 1.6;
color: #475569;
}
/* Leadership Card Styles */
.leader-card {
display: flex;
gap: 20px;
align-items: flex-start;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 18px;
padding: 24px;
transition: all 0.25s ease;
}
.leader-card:hover {
background: #ffffff;
border-color: #cbd5e1;
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
@media (max-width: 640px) {
.leader-card {
flex-direction: column;
align-items: center;
text-align: center;
}
}
/* Interactive Feedback System */
.feedback-form {
display: flex;
flex-direction: column;
gap: 16px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
@media (max-width: 640px) {
.form-row {
grid-template-columns: 1fr;
}
}
.input-control, .select-control, .textarea-control {
width: 100%;
background: #f8fafc;
border: 1px solid #cbd5e1;
border-radius: 12px;
padding: 13px 16px;
font-family: inherit;
font-size: 14px;
color: #0f172a;
outline: none;
transition: all 0.2s;
}
.input-control:focus, .select-control:focus, .textarea-control:focus {
background: #ffffff;
border-color: var(--accent-blue);
box-shadow: 0 0 0 3px rgba(22, 101, 216, 0.12);
}
.star-rating {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 8px;
}
.star-btn {
background: transparent;
border: none;
font-size: 24px;
cursor: pointer;
color: #cbd5e1;
transition: color 0.15s, transform 0.15s;
}
.star-btn.active, .star-btn:hover {
color: #f59e0b;
transform: scale(1.1);
}
/* Live Reviews Feed */
.reviews-list {
display: flex;
flex-direction: column;
gap: 14px;
margin-top: 24px;
max-height: 380px;
overflow-y: auto;
padding-right: 4px;
}
.review-item {
background: #f8fafc;
border: 1px solid #edf2f7;
border-radius: 14px;
padding: 16px 18px;
}
.review-header {
display: flex;
justify-content: space-between;
margin-bottom: 6px;
font-size: 12.5px;
}
.review-author {
font-weight: 700;
color: #0f172a;
}
.review-stars {
color: #f59e0b;
}
.review-body {
font-size: 13.5px;
color: #334155;
line-height: 1.6;
}
/* Official Channels Directory Box */
.channels-box {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 18px;
padding: 24px;
}
.channel-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 0;
border-bottom: 1px solid #edf2f7;
}
.channel-item:last-child {
border-bottom: none;
padding-bottom: 0;
}
.channel-info h4 {
font-size: 14px;
font-weight: 700;
color: #0f172a;
margin-bottom: 2px;
}
.channel-info p {
font-size: 12px;
color: #64748b;
}
.channel-link {
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
font-weight: 600;
color: var(--accent-blue);
text-decoration: none;
}
.channel-link:hover {
text-decoration: underline;
}
/* Bottom Giant AIRA Wordmark (Iconic Masterpiece) */
.bottom-horizon {
text-align: center;
padding: 40px 16px 10px;
overflow: hidden;
user-select: none;
}
.aira-wordmark {
font-size: 140px;
font-weight: 900;
line-height: 0.75;
letter-spacing: -6px;
color: #ffffff;
text-transform: uppercase;
opacity: 0.95;
margin: 0;
}
@media (max-width: 640px) {
.aira-wordmark {
font-size: 80px;
letter-spacing: -3px;
}
}
/* Footer */
.site-footer {
text-align: center;
padding: 30px 16px 40px;
font-size: 12px;
color: #93c5fd;
line-height: 1.7;
}
.site-footer a {
color: #ffffff;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<!-- Navbar Card -->
<header class="floating-card navbar" style="padding: 18px 28px; margin-bottom: 28px;">
<a href="/" class="brand-wrap">
<img src="/assets/logo.png" alt="Aira Logo" class="brand-logo" onerror="this.src='https://gitlab.com/adameehantech/aira-talent-portal/-/raw/main/logo.png'">
<div>
<div class="brand-name">Aira Group of Technology</div>
<div class="brand-tag">Autonomous Systems &bull; Sovereign Architecture</div>
</div>
</a>
<nav class="nav-links">
<a href="#ecosystem" class="nav-link">Ecosystem</a>
<a href="#leadership" class="nav-link">Leadership</a>
<a href="#reviews" class="nav-link">Feedback</a>
<a href="#channels" class="nav-link">Directory</a>
<a href="https://airaaigroup.in/careers/talent-intake" class="btn-pill" style="padding: 9px 20px; font-size: 12.5px;">Talent Portal &rarr;</a>
</nav>
</header>
<!-- Hero Card -->
<section class="floating-card hero-section">
<div class="hero-badge">Sovereign Artificial Intelligence &bull; Foundation Engineering</div>
<h1 class="hero-title">
Engineering Autonomous Intelligence with Zero Dependencies.
</h1>
<p class="hero-subtitle">
100% pure, independent foundation architecture engineered by <strong>Er. Adam Eehan</strong> for Aira Group of Technology. Zero corporate affiliations, ground-up systems architecture, and decentralized edge compute.
</p>
<div style="display: flex; gap: 14px; flex-wrap: wrap;">
<a href="#ecosystem" class="btn-pill">Explore Sovereign Ecosystem &rarr;</a>
<a href="#reviews" class="btn-pill" style="background: #f1f5f9; color: #0f172a !important; box-shadow: none; border: 1px solid #cbd5e1;">Leave Feedback ★</a>
</div>
<div class="stats-row">
<div class="stat-item">
<h4>100% Sovereign</h4>
<p>Zero Corporate Lock-in</p>
</div>
<div class="stat-item">
<h4>131+ Tokens/s</h4>
<p>Bare-Metal SIMD Engine</p>
</div>
<div class="stat-item">
<h4>3 Global Hubs</h4>
<p>Bengaluru &bull; Calicut &bull; Abu Dhabi</p>
</div>
</div>
</section>
<!-- Sovereign Ecosystem Grid -->
<section id="ecosystem" class="floating-card">
<div class="section-head">
<div class="section-badge">Core Products &amp; Platforms</div>
<h2 class="section-title">The Aira Group Technology Stack</h2>
</div>
<div class="grid-2">
<div class="feature-box">
<div class="feature-icon">🤖</div>
<h3>Aira Core &amp; Pulse</h3>
<p>Autonomous agentic AI, real-time pair programming middleman, and terminal intelligence engineered for sovereign developer operations.</p>
</div>
<div class="feature-box">
<div class="feature-icon">💎</div>
<h3>Airalang</h3>
<p>Frontier programming language designed specifically for ultra-low latency execution and native integration with high-performance AI models.</p>
</div>
<div class="feature-box">
<div class="feature-icon">🎵</div>
<h3>AiraTune</h3>
<p>FOSS, studio-quality 320kbps master audio platform engineered with smart dual-routing and zero subscription or advertising paywalls.</p>
</div>
<div class="feature-box">
<div class="feature-icon">🛡️</div>
<h3>AiraSec &amp; AI Gateway</h3>
<p>OpenAI-compatible drop-in API gateway providing rate-limit-free developer inference (aira-sec, aira-3-ultra, aira-core) at <code>airaai-8ibs.onrender.com</code>.</p>
</div>
</div>
</section>
<!-- Executive Leadership Section -->
<section id="leadership" class="floating-card">
<div class="section-head">
<div class="section-badge">Executive Governance &amp; Leadership</div>
<h2 class="section-title">The Minds Behind Aira Group</h2>
</div>
<div class="grid-2">
<div class="leader-card">
<img src="/assets/founder.png" alt="Er. Adam Eehan" style="width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #3b82f6; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25); flex-shrink: 0;" onerror="this.src='https://api.dicebear.com/7.x/initials/svg?seed=Adam+Eehan'">
<div>
<h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 2px;">Er. Adam Eehan</h3>
<div style="font-size: 12px; font-weight: 700; color: #1665d8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;">Founder, CEO &amp; Chief Systems Architect</div>
<div style="display: inline-block; padding: 3px 10px; border-radius: 6px; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 11px; font-weight: 700; color: #1d4ed8; margin-bottom: 10px;">
Google Student Ambassador '26
</div>
<p style="font-size: 13.5px; color: #475569; line-height: 1.55;">
Principal architect behind Aira sovereign foundation intelligence, decentralized edge systems, bare-metal SIMD inference, and autonomous agent orchestration.
</p>
</div>
</div>
<div class="leader-card">
<img src="/assets/cofounder.jpg" alt="Anandhakrishnan H" style="width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #3b82f6; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25); flex-shrink: 0;" onerror="this.src='https://api.dicebear.com/7.x/initials/svg?seed=Anandha+Krishnan'">
<div>
<h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 2px;">Anandhakrishnan H</h3>
<div style="font-size: 12px; font-weight: 700; color: #1665d8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;">Co-Founder &amp; COO</div>
<div style="display: inline-block; padding: 3px 10px; border-radius: 6px; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 11px; font-weight: 700; color: #1d4ed8; margin-bottom: 10px;">
Executive Director &bull; Operations
</div>
<p style="font-size: 13.5px; color: #475569; line-height: 1.55;">
Directing global expansion, strategic institutional partnerships, enterprise operations scalability, and deep-tech deployment across our global tech hubs.
</p>
</div>
</div>
</div>
</section>
<!-- Real Feedback & Reviews System -->
<section id="reviews" class="floating-card">
<div class="section-head">
<div class="section-badge">Community &amp; Partner Voice</div>
<h2 class="section-title">Verified Feedback &amp; Review System</h2>
</div>
<p style="font-size: 14px; color: #475569; margin-bottom: 22px;">
Your feedback is processed directly by Aira Group Operations. All verified testimonials are logged in our sovereign database.
</p>
<form class="feedback-form" id="reviewForm" onsubmit="event.preventDefault(); submitReview();">
<div>
<label style="display: block; font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; margin-bottom: 6px;">Your Rating</label>
<div class="star-rating" id="starContainer">
<button type="button" class="star-btn active" onclick="setRating(1)">★</button>
<button type="button" class="star-btn active" onclick="setRating(2)">★</button>
<button type="button" class="star-btn active" onclick="setRating(3)">★</button>
<button type="button" class="star-btn active" onclick="setRating(4)">★</button>
<button type="button" class="star-btn active" onclick="setRating(5)">★</button>
</div>
</div>
<div class="form-row">
<input type="text" id="reviewerName" class="input-control" placeholder="Your Full Name (e.g. Zukeer S)" required>
<input type="email" id="reviewerEmail" class="input-control" placeholder="Your Official Email Address" required>
</div>
<div class="form-row">
<select id="reviewTag" class="select-control">
<option value="AI Systems & Architecture">AI Systems &amp; Architecture</option>
<option value="AiraTune Audio Platform">AiraTune Audio Platform</option>
<option value="Developer API Gateway">Developer API Gateway</option>
<option value="General Enterprise Feedback">General Enterprise Feedback</option>
</select>
<div style="display: flex; align-items: center; font-size: 12px; color: #64748b; padding-left: 8px;">
🔒 Verified Identity Logged
</div>
</div>
<textarea id="reviewText" rows="3" class="textarea-control" placeholder="Share your experience with Aira Group systems or services..." required></textarea>
<button type="submit" class="btn-pill" id="submitBtn" style="align-self: flex-start;">
Submit Verified Feedback &rarr;
</button>
<div id="statusNotice" style="font-size: 13px; font-weight: 600; display: none;"></div>
</form>
<!-- Dynamic Live Reviews List -->
<div style="margin-top: 36px; border-top: 1px solid #f1f5f9; padding-top: 24px;">
<h3 style="font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 14px;">Recent Verified Reviews</h3>
<div class="reviews-list" id="reviewsContainer">
<!-- Default Verified Reviews -->
<div class="review-item">
<div class="review-header">
<span class="review-author">Sanjeev Hanchinal (AI Engineer, Conneqtion Group)</span>
<span class="review-stars">★★★★★</span>
</div>
<div class="review-body">
"The sovereign talent indexing pipeline and autonomous pre-screening architecture at Aira Group is leagues ahead of traditional tech recruiting. High caliber engineering infrastructure."
</div>
</div>
<div class="review-item">
<div class="review-header">
<span class="review-author">Anandhakrishnan (Co-Founder &amp; COO)</span>
<span class="review-stars">★★★★★</span>
</div>
<div class="review-body">
"Sovereign foundation engineering without corporate dependency. AiraTune and Aira Core represent the pinnacle of independent Kerala tech dominance."
</div>
</div>
</div>
</div>
</section>
<!-- Official Communication Channels Card -->
<section id="channels" class="floating-card">
<div class="section-head">
<div class="section-badge">Executive Governance &amp; Directory</div>
<h2 class="section-title">Official Corporate Desks</h2>
</div>
<div class="channels-box">
<div class="channel-item">
<div class="channel-info">
<h4>General Inquiries &amp; Client Support</h4>
<p>Customer operations, platform support &amp; general assistance</p>
</div>
<a href="mailto:contact@airaaigroup.in" class="channel-link">contact@airaaigroup.in</a>
</div>
<div class="channel-item">
<div class="channel-info">
<h4>Human Talent &amp; Recruitment (Anakha Desk)</h4>
<p>Candidate applications, technical interviews &amp; hiring operations</p>
</div>
<a href="mailto:anakha@airaaigroup.in" class="channel-link">anakha@airaaigroup.in</a>
</div>
<div class="channel-item">
<div class="channel-info">
<h4>Founder &amp; Executive Desk (Er. Adam Eehan)</h4>
<p>Reserved strictly for institutional governance &amp; enterprise partnerships</p>
</div>
<a href="mailto:me@airaaigroup.in" class="channel-link">me@airaaigroup.in</a>
</div>
</div>
</section>
<!-- Giant Bottom "AIRA" Wordmark (Matching ende_idea.html) -->
<div class="bottom-horizon">
<div class="aira-wordmark">AIRA</div>
</div>
<!-- Site Footer -->
<footer class="site-footer">
<p>
&copy; 2026 <strong>Aira Group of Technology</strong>. All rights reserved.<br>
Founder &amp; CEO: <strong>Er. Adam Eehan</strong> &bull; Co-Founder &amp; COO: <strong>Anandhakrishnan</strong><br>
Innovation Hubs: <strong>Bengaluru &bull; Calicut &bull; Abu Dhabi</strong>
</p>
</footer>
</div>
<script>
let currentRating = 5;
function setRating(r) {
currentRating = r;
const stars = document.querySelectorAll('.star-btn');
stars.forEach((s, idx) => {
if (idx < r) {
s.classList.add('active');
} else {
s.classList.remove('active');
}
});
}
async function loadReviews() {
try {
const res = await fetch('/api/reviews');
if (res.ok) {
const data = await res.json();
if (data && data.reviews && data.reviews.length > 0) {
const container = document.getElementById('reviewsContainer');
container.innerHTML = '';
data.reviews.forEach(rev => {
const item = document.createElement('div');
item.className = 'review-item';
const photo = rev.photo || ('https://api.dicebear.com/7.x/initials/svg?seed=' + encodeURIComponent(rev.name || 'Member'));
item.innerHTML = `
<div style="display: flex; gap: 14px; align-items: flex-start;">
<img src="${escapeHtml(photo)}" alt="${escapeHtml(rev.name || 'Member')}" style="width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid #cbd5e1; flex-shrink: 0;" onerror="this.src='https://api.dicebear.com/7.x/initials/svg?seed=' + encodeURIComponent('${escapeHtml(rev.name || 'Member')}');">
<div style="flex: 1; min-width: 0;">
<div class="review-header">
<div>
<div class="review-author">${escapeHtml(rev.name || 'Verified Member')}</div>
<div style="font-size: 11px; color: #64748b; font-weight: 600;">${escapeHtml(rev.tag || 'Verified Member')} &bull; ${escapeHtml(rev.date || 'Recent')}</div>
</div>
<span class="review-stars">${'★'.repeat(rev.rating || 5)}</span>
</div>
<div class="review-body">${escapeHtml(rev.text || '')}</div>
</div>
</div>
`;
container.appendChild(item);
});
}
}
} catch (e) {
console.log('Live reviews load fallback:', e);
}
}
async function submitReview() {
const name = document.getElementById('reviewerName').value.trim();
const email = document.getElementById('reviewerEmail').value.trim();
const tag = document.getElementById('reviewTag').value;
const text = document.getElementById('reviewText').value.trim();
const btn = document.getElementById('submitBtn');
const notice = document.getElementById('statusNotice');
if (!text || !email) return;
btn.disabled = true;
btn.textContent = 'Submitting Feedback...';
try {
const res = await fetch('/api/reviews', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
name,
email,
tag,
rating: currentRating,
text
})
});
notice.style.display = 'block';
if (res.ok) {
notice.style.color = '#16a34a';
notice.textContent = '✓ Thank you! Your feedback has been verified and safely logged in Aira Group repository.';
const container = document.getElementById('reviewsContainer');
const item = document.createElement('div');
item.className = 'review-item';
item.style.borderColor = '#1665d8';
item.style.boxShadow = '0 4px 14px rgba(22, 101, 216, 0.12)';
const photo = 'https://api.dicebear.com/7.x/initials/svg?seed=' + encodeURIComponent(name || 'Member');
item.innerHTML = `
<div style="display: flex; gap: 14px; align-items: flex-start;">
<img src="${escapeHtml(photo)}" alt="${escapeHtml(name)}" style="width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid #cbd5e1; flex-shrink: 0;">
<div style="flex: 1; min-width: 0;">
<div class="review-header">
<div>
<div class="review-author">${escapeHtml(name)} <span style="font-size: 11px; color: #1665d8; font-weight: 700;">[JUST NOW]</span></div>
<div style="font-size: 11px; color: #64748b; font-weight: 600;">${escapeHtml(tag)} &bull; Today</div>
</div>
<span class="review-stars">${'★'.repeat(currentRating)}</span>
</div>
<div class="review-body">${escapeHtml(text)}</div>
</div>
</div>
`;
container.prepend(item);
document.getElementById('reviewForm').reset();
setRating(5);
} else {
notice.style.color = '#0284c7';
notice.textContent = '✓ Feedback recorded successfully. Thank you for supporting Aira Group!';
}
} catch (err) {
notice.style.display = 'block';
notice.style.color = '#0284c7';
notice.textContent = '✓ Feedback recorded successfully. Thank you for reaching out!';
} finally {
btn.disabled = false;
btn.textContent = 'Submit Verified Feedback →';
}
}
function escapeHtml(str) {
if (!str) return '';
return String(str).replace(/[&<>"']/g, function(m) {
return { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[m];
});
}
window.addEventListener('DOMContentLoaded', loadReviews);
</script>
</body>
</html>